Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Gulp watch does not rebuild Sass when imported file changes #1358

Open
leonardoarroyo opened this issue Sep 13, 2016 · 4 comments
Open

Gulp watch does not rebuild Sass when imported file changes #1358

leonardoarroyo opened this issue Sep 13, 2016 · 4 comments

Comments

@leonardoarroyo
Copy link

leonardoarroyo commented Sep 13, 2016

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.

@LesleyDuyndam
Copy link

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

@leonardoarroyo
Copy link
Author

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

@sp00m
Copy link

sp00m commented Jul 31, 2017

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

@MacgyverMartins
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants