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
Post a Comment