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 }))