You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-37
Original file line number
Diff line number
Diff line change
@@ -503,74 +503,69 @@ module.exports = {
503
503
504
504
## Examples
505
505
506
-
### Minimal example
506
+
### Recommend
507
+
508
+
For `production` builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on.
509
+
This can be achieved by using the `mini-css-extract-plugin`, because it creates separate css files.
510
+
For `development` mode (including `webpack-dev-server`) you can use [style-loader](https://github.com/webpack-contrib/style-loader), because it injects CSS into the DOM using multiple <style></style> and works faster.
511
+
512
+
> i Do not use together `style-loader` and `mini-css-extract-plugin`.
`mini-css-extract-plugin` is more often used in `production` mode to get separate css files.
547
-
For `development` mode (including `webpack-dev-server`) you can use `style-loader`, because it injects CSS into the DOM using multiple `<style></style>` and works faster.
548
-
549
-
> ⚠️ Do not use `style-loader` and `mini-css-extract-plugin` together.
0 commit comments