Skip to content

Commit c5d6c90

Browse files
authored
fix: css out of order in a production build
The "sideEffects" property in package.json improves webpack treeshaking. However that causes the out-of-order CSS we were seeing in production builds. We may enable again once the bug is fixed. For more context see webpack/webpack#7094 and webpack-contrib/mini-css-extract-plugin#202.
1 parent 547d662 commit c5d6c90

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
"browserslist": [
2020
"extends browserslist-config-google/modern"
2121
],
22-
"sideEffects": [
23-
"*.css"
24-
],
2522
"scripts": {
2623
"dev": "cross-env NODE_ICU_DATA=node_modules/full-icu next",
2724
"prebuild": "rimraf .next",

0 commit comments

Comments
 (0)