three.cad/webpack.common.js

32 lines
520 B
JavaScript
Raw Normal View History

2021-03-20 19:08:15 +00:00
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",
],
},
],
},
};