Skip to content

Commit

Permalink
fix: css out of order in a production build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
satazor committed Dec 21, 2019
1 parent 547d662 commit c5d6c90
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"browserslist": [
"extends browserslist-config-google/modern"
],
"sideEffects": [
"*.css"
],
"scripts": {
"dev": "cross-env NODE_ICU_DATA=node_modules/full-icu next",
"prebuild": "rimraf .next",
Expand Down

0 comments on commit c5d6c90

Please sign in to comment.