added css minimizer to webpack
This commit is contained in:
parent
188806d1f8
commit
213b3918cc
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
const path = require('path');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
||||
|
||||
|
||||
module.exports = {
|
||||
entry: './src/js/app.js',
|
||||
|
@ -15,6 +17,11 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
},
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new CssMinimizerPlugin(),
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new MiniCssExtractPlugin({
|
||||
filename: 'styles.css',
|
||||
|
|
Loading…
Reference in a new issue