Skip to content
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

SASS error interrupts watchFiles function #3

Open
ayezee33 opened this issue Nov 6, 2015 · 1 comment
Open

SASS error interrupts watchFiles function #3

ayezee33 opened this issue Nov 6, 2015 · 1 comment

Comments

@ayezee33
Copy link

ayezee33 commented Nov 6, 2015

Not sure what I am missing, I am using the same gulpfile/folder structure and whenever there is a sass error it stops watchFiles function.

@rsjorslev
Copy link

I experienced the same issue and solved it by using "on('error')" like the below example:

gulp.task("compileSass", function () {
    gulp.src('app/styles/**/*.scss')
        .pipe(maps.init())
        .pipe(sass({
            outputStyle: 'expanded'
        })
            .on('error', sass.logError))
        .pipe(maps.write("./"))
        .pipe(gulp.dest('app/styles'));
});

i am very new at this so i dont know exactly why it keeps running - but it does :). I am guessing it is because it runs sass.logError upon something going wrong but it does not write anything to the console.

take a look at this stackoverflow question for more info:

http://stackoverflow.com/questions/21080433/gulp-sass-watch-stops-when-invalid-property-name

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

No branches or pull requests

2 participants