generator-angular icon indicating copy to clipboard operation
generator-angular copied to clipboard

Gulp watch does not rebuild Sass when imported file changes

Open leonardoarroyo opened this issue 7 years ago • 4 comments

Whenever a file changes, it calls the "style" pipeline.

$.watch(paths.styles)
    .pipe($.plumber())
    .pipe(styles())
    .pipe($.connect.reload());

However, if this is a imported file, the path passed to the line will be the file path, and not the main scss file which imports it, requiring me to save the main file to reload the css.

leonardoarroyo avatar Sep 13 '16 02:09 leonardoarroyo

@leonardoarroyo Did you managed to fix this? Keep getting the same issue.

LesleyDuyndam avatar Jan 18 '17 14:01 LesleyDuyndam

@LesleyDuyndam I really can't remember, sorry :(

leonardoarroyo avatar Jan 20 '17 17:01 leonardoarroyo

I developed gulp-watch-sass for this specific purpose, may this help!

sp00m avatar Jul 31 '17 12:07 sp00m

I'm have this problem, but not only with sass imported sass files. scripts files also doesn't fire connect.reload

MacgyverMartins avatar Oct 16 '17 22:10 MacgyverMartins