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
// Older versions of webpack have `plugins` on `loader.query` instead of `loader.options`.
66
-
constoptions=loader.options||loader.query
67
-
options.plugins= [['styled-jsx/babel', {
68
-
'plugins': ['styled-jsx-plugin-postcss']
69
-
}]].concat(options.plugins|| [])
70
-
return config
71
-
}
68
+
constoptions=loader.options||loader.query;
69
+
options.plugins= [
70
+
[
71
+
"styled-jsx/babel",
72
+
{
73
+
plugins: ["styled-jsx-plugin-postcss"],
74
+
},
75
+
],
76
+
].concat(options.plugins|| []);
77
+
return config;
78
+
};
72
79
```
73
80
74
81
_Note: Please follow their instructions on how to set up build & test scripts, and make sure you have a correctly formatted `postcss.config.js` as well_.
75
82
76
-
77
83
#### Notes
78
84
79
85
`styled-jsx-plugin-postcss` uses `styled-jsx`'s plugin system which is supported
@@ -82,13 +88,13 @@ from version 2. Read more on their repository for further info.
console.error('Next.js 9 default postcss support uses a non standard postcss config schema https://err.sh/next.js/postcss-shape, you must use the interoperable object-based format instead https://nextjs.org/docs/advanced-features/customizing-postcss-config')
"Next.js 9 default postcss support uses a non standard postcss config schema https://err.sh/next.js/postcss-shape, you must use the interoperable object-based format instead https://nextjs.org/docs/advanced-features/customizing-postcss-config"
28
+
);
29
+
}
21
30
}
22
31
23
-
thrownewError(`postcss failed with ${result.stderr}`)
32
+
thrownewError(`postcss failed with ${result.stderr}`);
0 commit comments