[Build] Gracefully handle sass error

https://github.com/nasa/openmctweb/issues/698
This commit is contained in:
Pete Richards 2016-02-22 18:29:26 -08:00
parent bd7ad85bd7
commit 88945c48d4

View File

@ -87,7 +87,7 @@ gulp.task('test', function (done) {
gulp.task('stylesheets', function () {
return gulp.src(paths.scss, {base: '.'})
.pipe(sass(options.sass))
.pipe(sass(options.sass).on('error', sass.logError))
.pipe(rename(function (file) {
file.dirname = file.dirname.replace('/sass', '/css');
return file;