From 0aa3473a628265d1f1f57919a6129cfd6ea13389 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Fri, 5 Jan 2018 22:59:34 +0100 Subject: [PATCH] [TASK] Allow errors on gulp serve --- gulp/tasks/javascript.js | 3 +++ gulp/tasks/sass.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gulp/tasks/javascript.js b/gulp/tasks/javascript.js index 594d600..88e7137 100644 --- a/gulp/tasks/javascript.js +++ b/gulp/tasks/javascript.js @@ -3,6 +3,9 @@ module.exports = function (gulp, plugins, config, env) { return gulp.src('app.js') .pipe(env.development(plugins.sourcemaps.init())) .pipe(plugins.requirejsOptimize(env.production() ? config.requireJs.prod : config.requireJs.dev)) + .on('error', function () { + this.emit('end'); + }) .pipe(env.production(plugins.uglify({ output: { comments: 'all' } }))) .pipe(env.development(plugins.sourcemaps.write('.', { addComment: true }))) .pipe(gulp.dest(config.build)); diff --git a/gulp/tasks/sass.js b/gulp/tasks/sass.js index f4ce8fb..e0a9c5e 100644 --- a/gulp/tasks/sass.js +++ b/gulp/tasks/sass.js @@ -6,6 +6,9 @@ module.exports = function (gulp, plugins, config, env) { outputStyle: 'compressed', sourceMap: false })) + .on('error', function () { + this.emit('end'); + }) .pipe(plugins.autoprefixer({ browsers: config.autoprefixer }))