Closed radubrehar closed 8 years ago
@radubrehar Are you running postcss-import
before postcss-css-variables
(plugin order)?
Is it necessary? I mean I don't want to inline all my css files that I @import
@radubrehar Do you know of another plugin that can handle declarations that are in a @import
'ed file? I am curious to see what they are doing.
Running postcss-import
before postcss-css-variables
is necessary now because we get the map of variables from the rules and declarations passed in.
Thanks, it works!
I have variables in one file, let's call it
'vars.css'
In
'main.css'
I try to@import './vars.css'
and use variables. This fails and renders undefined. If I define variables in the same file where I use them, it's working.vars.css
main.css