Skip to content

Commit 8bf1fe8

Browse files
EugeneHlushkojeremenichelli
authored andcommitted
fix(configuration): provide proper uglify plugin usage example (#2191)
fix(configuration): provide proper uglify plugin usage example (#2191)
1 parent cf7e363 commit 8bf1fe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/configuration/optimization.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ __webpack.config.js__
4545

4646

4747
```js
48+
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
49+
4850
module.exports = {
4951
//...
5052
optimization: {
5153
minimizer: [
52-
new webpack.optimize.UglifyJsPlugin({ /* your config */ })
54+
new UglifyJsPlugin({ /* your config */ })
5355
]
5456
}
5557
}

0 commit comments

Comments
 (0)