css-modules / postcss-modules-values

Pass arbitrary constants between your module files
ISC License
38 stars 6 forks source link

Can't import sass file (css parser is used instead) #16

Closed HeadFox closed 5 months ago

HeadFox commented 3 years ago

I have an issue with class import from other sass file. If I import my class like this

@value list-item-text from "../ListItemText/list-item-text.module.scss";

And then use it, I've got an error like this : image

And I can figure how to make it work. If you need more information feel free to ask.

alexander-akait commented 3 years ago

Because you need transform sass to css

HeadFox commented 3 years ago

So there is no way to use it directly in sass ? Do you think it's possible to change transformation order in my webpack config to make sass conversation before postcss-module parsing ?

alexander-akait commented 3 years ago

So there is no way to use it directly in sass ?

No way, you need to tansform

Do you think it's possible to change transformation order in my webpack config to make sass conversation before postcss-module parsing ?

Yes, but without example I can't say what is wrong

alexander-akait commented 5 months ago

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!