Skip to content

Commit

Permalink
Features / uglify: Minimize css
Browse files Browse the repository at this point in the history
  • Loading branch information
alexblunck committed Nov 23, 2017
1 parent 1fff335 commit 829dc8f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/features/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')

module.exports = function (options) {
// Skip on development builds
Expand All @@ -16,7 +17,8 @@ module.exports = function (options) {
new UglifyJSPlugin({
sourceMap: true,
cache: true
})
}),
new OptimizeCssAssetsPlugin()
]
}
}
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"html-webpack-plugin": "2.30.1",
"inline-chunk-manifest-html-webpack-plugin": "2.0.0",
"node-sass": "4.7.2",
"optimize-css-assets-webpack-plugin": "3.2.0",
"postcss-loader": "2.0.8",
"raw-loader": "0.5.1",
"rc": "1.2.2",
Expand Down

0 comments on commit 829dc8f

Please sign in to comment.