Skip to content

Commit 272910c

Browse files
evenstensbergevilebottnawi
authored andcommitted
docs: uglify -> terser (#350)
1 parent b653641 commit 272910c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,13 @@ While webpack 5 is likely to come with a CSS minimizer built-in, with webpack 4
121121
**webpack.config.js**
122122

123123
```js
124-
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
124+
const TerserJSPlugin = require("terser-webpack-plugin");
125125
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
126126
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
127127
module.exports = {
128128
optimization: {
129129
minimizer: [
130-
new UglifyJsPlugin({
131-
cache: true,
132-
parallel: true,
133-
sourceMap: true // set to true if you want JS source maps
134-
}),
130+
new TerserJSPlugin({}),
135131
new OptimizeCSSAssetsPlugin({})
136132
]
137133
},

0 commit comments

Comments
 (0)