diff options
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js index f1bd88b..72f64d0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,7 +17,9 @@ gulp.task('watch', function() { gulp.task('build', function() { gulp.src(paths.source) - .pipe(sass({outputStyle: 'compact', precision: 10})) + .pipe(sass({outputStyle: 'compact', precision: 10}) + .on('error', sass.logError) + ) .pipe(autoprefixer()) .pipe(csscomb()) .pipe(gulp.dest('./dist')) @@ -30,12 +32,16 @@ gulp.task('build', function() { gulp.task('docs', function() { gulp.src(paths.doc) - .pipe(sass({outputStyle: 'compact', precision: 10})) + .pipe(sass({outputStyle: 'compact', precision: 10}) + .on('error', sass.logError) + ) .pipe(autoprefixer()) .pipe(csscomb()) .pipe(gulp.dest('./docs/css')); gulp.src(paths.source) - .pipe(sass({outputStyle: 'compact', precision: 10})) + .pipe(sass({outputStyle: 'compact', precision: 10}) + .on('error', sass.logError) + ) .pipe(autoprefixer()) .pipe(csscomb()) .pipe(gulp.dest('./docs/dist')) |