Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Gulp-sass hangs after an error occurred #243

Closed
sqal opened this issue Apr 20, 2015 · 1 comment
Closed

Gulp-sass hangs after an error occurred #243

sqal opened this issue Apr 20, 2015 · 1 comment

Comments

@sqal
Copy link

sqal commented Apr 20, 2015

I have installed gulp-sass 2.0.0-alpha.1 and I am having following problem. My sass config:

var paths = {
    styles: {
        src: 'app/styles/**/*.scss',
        dest: '.tmp/css'
    }
};

gulp.task('styles', function() {
    return gulp.src(paths.styles.src)
    .pipe(sass().on('error', sass.logError))
    .pipe(gulp.dest(paths.styles.dest))
    .pipe(reload({ stream: true }));
});

and when I accidentally use some variable that is not defined (or do any error, missing semicolon for example), then of course i am getting an error in the console:

[11:23:52] [gulp-sass] app\styles\elements\_buttons.scss 54:12 Undefined variable: "$color".

but that's it. Gulp-sass now hangs out and does not respond to further changes. I have to stop gulp task and run it again. Did I do something wrong with my configuration or the problem lies somewhere else?

@Snugug
Copy link
Collaborator

Snugug commented Apr 22, 2015

Duplicate of #90

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants