Skip to content

Commit

Permalink
docs: uglify -> terser (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg authored and evilebottnawi committed Mar 25, 2019
1 parent b653641 commit 272910c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Expand Up @@ -121,17 +121,13 @@ While webpack 5 is likely to come with a CSS minimizer built-in, with webpack 4
**webpack.config.js**

```js
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const TerserJSPlugin = require("terser-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
module.exports = {
optimization: {
minimizer: [
new UglifyJsPlugin({
cache: true,
parallel: true,
sourceMap: true // set to true if you want JS source maps
}),
new TerserJSPlugin({}),
new OptimizeCSSAssetsPlugin({})
]
},
Expand Down

0 comments on commit 272910c

Please sign in to comment.