Skip to content

Commit

Permalink
fix(html-templates): Minimize css
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Nov 9, 2019
1 parent 9fbf88b commit 9156661
Show file tree
Hide file tree
Showing 3 changed files with 1,267 additions and 50 deletions.
6 changes: 6 additions & 0 deletions build/webpack.config.common.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const path = require('path');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const TerserJSPlugin = require('terser-webpack-plugin');


module.exports = (settings) => {
const {
Expand Down Expand Up @@ -40,6 +43,9 @@ module.exports = (settings) => {
},
],
},
optimization: {
minimizer: [new TerserJSPlugin(), new OptimizeCSSAssetsPlugin()],
},
devtool: 'source-map',
};
};
Loading

0 comments on commit 9156661

Please sign in to comment.