[TASK] Allow errors on gulp serve

This commit is contained in:
Xaver Maierhofer 2018-01-05 22:59:34 +01:00
parent e0cef88beb
commit 0aa3473a62
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
2 changed files with 6 additions and 0 deletions

View File

@ -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));

View File

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