According to this question it's possible to import css file from less v.1.4.0.
I tried to use gulp-less
task, and it's not working.
There's any way to import css file like this: @import "../spritesheet.css";
with nodeJS gulp?
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- google-drive can't get push notifications
There are several ways to include files in LESS, depending on what you need, using
@import ([keyword]) "filename"
.Allowed keywords are:
Lesscss.org - Import Options
It's not clear to me what your use case is, but if you want to use the contents of
spritesheet.css
further on in your LESS file (for example extending classes defined in your spritesheet) you need the(less)
keyword.If you just want to include the contents of
spritesheet.css
into your output file without accessing them from within the LESS file at all, stick with(inline)
.