Closed shura-sparrow closed 5 years ago
I'm not an expect in setup postcss
for webpack. At first glance your config is ok.
Are you sure the problem in postcss-csso
? If it receives the CSS from example, then the problem is about &
in selector. But I suppose other plugins should resolve it in plain CSS.
@lahmatiy thanks for response, I used this config without postcss-csso and everything worked fine. Error message begins with
Module build failed: ModuleError: postcss-csso:
Could the problem be in the order of plugins in postcss plugins array?
The order is correct, minifier should go last. If minifier gets follow CSS
html:global(.input) & {
.tabSelectorButton {
It means that postcss-nested
is not applied to CSS, or I misunderstand something.
Looks like problem is not connected with postcss-csso. Fill free to re-open issue if you have new details.
Hi, I'm using your postcss-csso with css modules. Here's my webpack config (v.1):
I've got mistakes with :globals in my css: Module build failed: Unexpected input 221
What am I doing wrong?