Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
misc(readme) update snippet to webpack v4
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneHlushko committed Jun 29, 2018
1 parent f0d0a3b commit 959ceb1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Expand Up @@ -27,13 +27,16 @@ npm i -D uglifyjs-webpack-plugin

**webpack.config.js**
```js
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

module.exports = {
plugins: [
new UglifyJsPlugin()
]
}
//...
optimization: {
minimizer: [
new UglifyJsPlugin()
]
}
};
```

<h2 align="center">Options</h2>
Expand Down

0 comments on commit 959ceb1

Please sign in to comment.