Open KittyGiraudel opened 9 years ago
Consider the following task:
gulp.task('sass', function () { return gulp .src('./assets/stylesheets/*.sass') .pipe(glob()) .pipe(sass()) .pipe(gulp.dest(output)); });
And the following files in stylesheets/:
stylesheets/
// a.sass @import "b.sass";
// b.sass @import "sub/*"
Now, here is what happens:
a.sass
b.sass
sub/*
events.js:85 throw er; // Unhandled 'error' event ^ Error: assets/stylesheets/b.sass 6:9 file to import not found or unreadable: sub/*
Any idea?
It could be related to #5, gulp-sass-bulk-import doesn't follow nested imports.
The problem with this is that only a.sass is in the vinyl. No way to modify nested files elsewhere.
Consider the following task:
And the following files in
stylesheets/
:Now, here is what happens:
a.sass
and does not find any globa.sass
is being fired and the next task (Sass) starts processing the filesb.sass
a.sass
and follows the import statementsub/*
inb.sass
before the plugin has replaced itAny idea?