32 lines
520 B
JavaScript
32 lines
520 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './src/index.js',
|
||
|
|
||
|
plugins: [
|
||
|
],
|
||
|
|
||
|
output: {
|
||
|
filename: 'bundle.js',
|
||
|
path: path.resolve(__dirname, 'dist'),
|
||
|
// clean: true,
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.s[ac]ss$/i,
|
||
|
use: [
|
||
|
// Creates `style` nodes from JS strings
|
||
|
"style-loader",
|
||
|
// Translates CSS into CommonJS
|
||
|
"css-loader",
|
||
|
// Compiles Sass to CSS
|
||
|
"sass-loader",
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|
||
|
|
||
|
|