Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
docs: upgrade gulp-uglify, improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton committed Apr 14, 2015
1 parent 3178094 commit 375d4fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 375d4fc

Please sign in to comment.