Skip to content

Commit d6a2f1a

Browse files
docs: improve (#37)
1 parent 144a2da commit d6a2f1a

File tree

6 files changed

+106
-111
lines changed

6 files changed

+106
-111
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ module.exports = {
4444
},
4545
optimization: {
4646
minimize: true,
47-
minimizer: [new CssMinimizerPlugin()],
47+
minimizer: [
48+
// For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
49+
// `...`
50+
new CssMinimizerPlugin(),
51+
],
4852
},
4953
};
5054
```
5155

5256
This will enable CSS optimization only in production mode.
53-
If you want to run it also in development, put the plugin configuration in the `plugins` option array.
57+
If you want to run it also in development set the `optimization.minimize` option to `true`.
5458

5559
And run `webpack` via your preferred method.
5660

package-lock.json

Lines changed: 61 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
6262
"babel-jest": "^26.3.0",
6363
"clean-css": "^4.2.3",
64-
"copy-webpack-plugin": "^6.1.0",
64+
"copy-webpack-plugin": "^6.1.1",
6565
"cross-env": "^7.0.2",
6666
"css-loader": "^4.3.0",
6767
"csso": "^4.0.3",
@@ -72,13 +72,13 @@
7272
"eslint-plugin-import": "^2.22.0",
7373
"husky": "^4.3.0",
7474
"jest": "^26.4.2",
75-
"lint-staged": "^10.3.0",
75+
"lint-staged": "^10.4.0",
7676
"memfs": "^3.2.0",
7777
"mini-css-extract-plugin": "^0.11.2",
7878
"node-sass": "^4.14.1",
7979
"npm-run-all": "^4.1.5",
8080
"postcss": "^7.0.32",
81-
"prettier": "^2.1.1",
81+
"prettier": "^2.1.2",
8282
"sass-loader": "^10.0.2",
8383
"standard-version": "^9.0.0",
8484
"webpack": "^4.44.2"

0 commit comments

Comments
 (0)