Open AlexWayfer opened 4 years ago
Can you send a PR? I spend all my time on PostCSS 8 release preparation.
It should be related with this code https://github.com/postcss/postcss-simple-vars/blob/8537852b564363a2a23f5adced9af5e7389f23c8/index.js#L38-L42
The plugin code is very simple and small.
@ai Maybe you're looking for a regex more along the lines of this
/\B\$([\w\d\-_]+)/g
I can't reproduce this, I don't have time to set up an example repo to include imports but the problem could be related to plugin order. Or, unless I misunderstand how scoping is supposed to work, should components/forms.pcss
have @import 'colors.pcss';
in order to resolve the variable?
Replacement in functions seems to work fine, I tested the specific case above and added a unit test for this kind of thing.
Hello.
I have such files:
And I'm getting such error: