L
L
lavezzi12015-10-06 05:53:47
css
lavezzi1, 2015-10-06 05:53:47

@import not working in gulp-sass, how did you solve the problem?

I've read everything I can on this subject. But the problem is not solved.
https://github.com/dlmanning/gulp-sass/issues/1
In the task I registered the option
.pipe(sass({includePaths: ['source/css/components']}))
I try to import in different ways, it doesn't work.
Tried -
@import '*';
@import '/*';
@import 'components/*';
The problem is always the same
Error: source/css/common.scss
14:9 file to import not found or unreadable: components/*

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yastr, 2016-06-18
@Yastr

necropost, but still. struggled with it myself. I found the solution on github - link to the comment with the solution
in sublime text, go to user settings and add the line "atomic_save": true

S
Sergey Gromov, 2016-12-16
@reskwer

I use gulp-sass-globit and everything works great.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question