Closed renestalder closed 5 years ago
I have many of following lines in my code:
.klt-p-block-team-list__item:first-child { margin-top: calc(var(--klt-l-spacing-3, 0) * -1); }
The build fails in this case.
ERROR in ./~/css-loader?{"importLoaders":1,"minimize":true}!./~/postcss-loader/lib?{}!./dev/patternlib/source/css/klt-ui.css Module build failed: Unclosed bracket (2972:21) 2970 | } 2971 | .klt-p-block-team-list__item:first-child { > 2972 | margin-top: calc(20px; | ^ 2973 | }
Seems like postcss-css-variables generates this output:
.klt-p-block-team-list__item:first-child { margin-top: calc(20px; }
It seems like to pass and compile correctly when removing the fallback variable from var().
var()
Duplicate of https://github.com/MadLittleMods/postcss-css-variables/issues/62
I have many of following lines in my code:
The build fails in this case.
Seems like postcss-css-variables generates this output:
It seems like to pass and compile correctly when removing the fallback variable from
var()
.