File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ module.exports = {
44
44
],
45
45
},
46
46
optimization: {
47
- minimize: true ,
48
47
minimizer: [
49
48
// For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
50
49
// `...`,
@@ -55,7 +54,20 @@ module.exports = {
55
54
```
56
55
57
56
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
+ ```
59
71
60
72
And run ` webpack ` via your preferred method.
61
73
You can’t perform that action at this time.
0 commit comments