css - Interpolation in @import path with Stylus -


Although I've read the variables and interpolation parts of the stylus docs, I can not seem to do this work. / P>

  dirs = {seller: '../../../public/vendor/'} @import '{dirs.vendor + "normalize-css / normalize.css"}' < / Code>  

returns:

  failed to detect the @import file {dirs.vendor + "normalize-css / normalize.css"}   

Is it possible in stylus? If so, what am I doing?

Yes, this is possible. But stylus does not currently have string launches, so you should use containment:

  dirs = vendor: '../../../public/vendor/'} @import dirs. Vendor + "normalized-css / normalized css"    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -