I\'m using Gulp to compile my sass into css. A simple task compiles the style.scss
file in the _/sass
directory and saves the output into the root of t
Keep your imports as is, just pass the includePaths
option in your gulp sass module as an argument:
gulp.src('./_/sass/style.scss')
.pipe(sass({ includePaths : ['_/sass/'] }))
.pipe(gulp.dest('./'));
...should do it for you.
As per https://github.com/dlmanning/gulp-sass/issues/1
For this you need to do start with same gulpfile.js folder
@import '_/sass/reset'
I think the Gulp reads the import and find the file from where gulpfile.js are located
If you use Sublime text with Windows, you should add rules in Sunlime config. Just add "atomic_save" : true
in Preferences>Settings-User
https://github.com/dlmanning/gulp-sass/wiki/Common-Issues-and-Their-Fixes#partials-sporadically-not-found