css - Interpolation in @import path with Stylus -
although i've read variables , interpolation parts of stylus docs can't seem work.
dirs = { vendor: '../../../public/vendor/' } @import '{dirs.vendor + "normalize-css/normalize.css"}'
gives:
failed locate @import file {dirs.vendor + "normalize-css/normalize.css"}
is possible in stylus? if so, doing wrong?
yep, possible. stylus doesn't have string interpolation should utilize concatenation:
dirs = { vendor: '../../../public/vendor/' } @import dirs.vendor + "normalize-css/normalize.css"
css stylus
No comments:
Post a Comment