forked from gruntjs/grunt-contrib-uglify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle minification failure gracefully
Fixes: gruntjs#409 Whenever the minification of a file fails, the task fails with the error 'min' is not available in 'undefined'. This patch allows the task to continue to the next file without making any changes to the contents of the file in the destination. Also, this introduces a new configuration option `skipErrors`, so that the users can specify that in the task level options to override the default behaviour.
- Loading branch information
1 parent
e7915ce
commit de86db1
Showing
5 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Ideally this comment should get removed | ||
|
||
function failToMinify() { | ||
var @@name = 1; | ||
} | ||
|
||
|
||
/* This too */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Ideally this comment should get removed | ||
|
||
function failToMinify() { | ||
var @@name = 1; | ||
} | ||
|
||
|
||
/* This too */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters