[TASK] Allow errors on gulp serve
This commit is contained in:
parent
e0cef88beb
commit
0aa3473a62
@ -3,6 +3,9 @@ module.exports = function (gulp, plugins, config, env) {
|
|||||||
return gulp.src('app.js')
|
return gulp.src('app.js')
|
||||||
.pipe(env.development(plugins.sourcemaps.init()))
|
.pipe(env.development(plugins.sourcemaps.init()))
|
||||||
.pipe(plugins.requirejsOptimize(env.production() ? config.requireJs.prod : config.requireJs.dev))
|
.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.production(plugins.uglify({ output: { comments: 'all' } })))
|
||||||
.pipe(env.development(plugins.sourcemaps.write('.', { addComment: true })))
|
.pipe(env.development(plugins.sourcemaps.write('.', { addComment: true })))
|
||||||
.pipe(gulp.dest(config.build));
|
.pipe(gulp.dest(config.build));
|
||||||
|
@ -6,6 +6,9 @@ module.exports = function (gulp, plugins, config, env) {
|
|||||||
outputStyle: 'compressed',
|
outputStyle: 'compressed',
|
||||||
sourceMap: false
|
sourceMap: false
|
||||||
}))
|
}))
|
||||||
|
.on('error', function () {
|
||||||
|
this.emit('end');
|
||||||
|
})
|
||||||
.pipe(plugins.autoprefixer({
|
.pipe(plugins.autoprefixer({
|
||||||
browsers: config.autoprefixer
|
browsers: config.autoprefixer
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user