Skip to content

Commit 0afe0b9

Browse files
authored
docs: clarify wording about optimization.minimize (#92)
1 parent d881dbe commit 0afe0b9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ module.exports = {
4444
],
4545
},
4646
optimization: {
47-
minimize: true,
4847
minimizer: [
4948
// For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
5049
// `...`,
@@ -55,7 +54,20 @@ module.exports = {
5554
```
5655

5756
This will enable CSS optimization only in production mode.
58-
If you want to run it also in development set the `optimization.minimize` option to `true`.
57+
58+
If you want to run it also in development set the `optimization.minimize` option to `true`:
59+
60+
**webpack.config.js**
61+
62+
```js
63+
// [...]
64+
module.exports = {
65+
optimization: {
66+
// [...]
67+
minimize: true,
68+
},
69+
};
70+
```
5971

6072
And run `webpack` via your preferred method.
6173

0 commit comments

Comments
 (0)