-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import change not triggering parent file re-compile. #39
Comments
If you use the built-in gulp.watch('app/scss/*.scss', ['sass-watch']);
gulp.task('sass-watch', function() {
return gulp.src('app/scss/*.scss')
.pipe(sass(sassOptions))
.pipe(gulp.dest('app/css'))
.pipe(livereload());
}); |
@quarterto IMO, no watch set up should have to recompile every file when only one file has changed. It may be fast but it would still shave off many seconds by only compiling changed files. I've also tested it both ways. While libsass is fast, it's exponentially faster when only compiling changed files, especially on larger projects. |
Then use gulp-newer or gulp-changed. EDIT actually, this has the same problem. sorry! |
As @quarterto suggests, this is outside the domain of gulp-sass. gulp plugins are not supposed to be one-stop-shops for the entire build process. gulp-sass's only job is to allow the inclusion of node-sass in a build chain. |
Apologies, I did in fact post this issue to the wrong plugin. |
@ShaneHowell just found gulp-sass-graph |
This plugin solve this issue |
I'm having an issue with the parent file not re compiling when an import is changed.
For example, I have a base file called global.scss which imports a partial _header.scss.
But when the _header.scss is changed, it doesn't recompile global.scss.
The watch task is seeing the file being changed but its parent doesn't recompile.
Watch function:
scss_options variable:
Not 100% sure this is a gulp-sass issue though.
The text was updated successfully, but these errors were encountered: