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
This commit is contained in:
@@ -222,7 +222,7 @@ with a specified value. As an example, if you want to always show the subline in
|
|||||||
the following rule:
|
the following rule:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
[class^="subline__Logo"] {
|
[class^="Logo_subline"] {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"techradar": "./bin/techradar.js"
|
"techradar": "./bin/techradar.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbo",
|
"dev": "next dev",
|
||||||
"build:icons": "npx @svgr/cli --typescript --no-dimensions --no-prettier --out-dir src/components/Icons -- src/icons",
|
"build:icons": "npx @svgr/cli --typescript --no-dimensions --no-prettier --out-dir src/components/Icons -- src/icons",
|
||||||
"build:data": "tsx scripts/buildData.ts",
|
"build:data": "tsx scripts/buildData.ts",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
plugins:
|
plugins: [
|
||||||
process.env.NODE_ENV === "production"
|
|
||||||
? [
|
|
||||||
"postcss-nested",
|
"postcss-nested",
|
||||||
[
|
[
|
||||||
"postcss-preset-env",
|
"postcss-preset-env",
|
||||||
@@ -15,9 +13,5 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
]
|
|
||||||
: [
|
|
||||||
// No transformations in development
|
|
||||||
// because it won't affect turbo
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user