-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use webpack for dev-server to keep consistent css-module classnames
There's an inconsistency between webpack and next turbo's `localIdentName` This also improves the hot-loading fixes #440
- Loading branch information
1 parent
a8172e6
commit 335ecf6
Showing
3 changed files
with
17 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
module.exports = { | ||
plugins: | ||
process.env.NODE_ENV === "production" | ||
? [ | ||
"postcss-nested", | ||
[ | ||
"postcss-preset-env", | ||
{ | ||
autoprefixer: { | ||
flexbox: "no-2009", | ||
}, | ||
stage: 3, | ||
features: { | ||
"custom-properties": false, | ||
}, | ||
}, | ||
], | ||
] | ||
: [ | ||
// No transformations in development | ||
// because it won't affect turbo | ||
], | ||
plugins: [ | ||
"postcss-nested", | ||
[ | ||
"postcss-preset-env", | ||
{ | ||
autoprefixer: { | ||
flexbox: "no-2009", | ||
}, | ||
stage: 3, | ||
features: { | ||
"custom-properties": false, | ||
}, | ||
}, | ||
], | ||
], | ||
}; |