diff --git a/gulpfile.js b/gulpfile.js index da6de7fc9fa..4114af063ab 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -250,7 +250,14 @@ function buildModule(module, isRelease) { function buildMin() { return lazypipe() - .pipe(gulpif, /.css$/, minifyCss(), uglify({ preserveComments: 'some' })) + .pipe(gulpif, /.css$/, minifyCss(), + uglify({ preserveComments: 'some' }) + .on('error', function(e) { + console.log('\x07',e.message); + return this.end(); + } + ) + ) .pipe(rename, function(path) { path.extname = path.extname .replace(/.js$/, '.min.js') diff --git a/package.json b/package.json index 9bd92b0f412..1c83fc9021b 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "gulp-plumber": "^1.0.0", "gulp-rename": "^1.2.0", "gulp-sass": "^1.3.3", - "gulp-uglify": "^0.3.0", + "gulp-uglify": "^1.2.0", "gulp-util": "^3.0.1", "gulp-webserver": "^0.8.3", "jasmine-core": "^2.2.0",