35 lines
716 B
JavaScript
35 lines
716 B
JavaScript
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts');
|
|
|
|
module.exports = {
|
|
mode: 'production',
|
|
output: {},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.s[ac]ss$/i,
|
|
exclude: /(node_modules)/,
|
|
use: [
|
|
{
|
|
loader: MiniCssExtractPlugin.loader,
|
|
},
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
sourceMap: false,
|
|
url: false,
|
|
},
|
|
},
|
|
'sass-loader',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: "dist.css"
|
|
}),
|
|
new RemoveEmptyScriptsPlugin(),
|
|
],
|
|
};
|