Skip to content

Commit

Permalink
feat: Log minification error when --debug (#1102)
Browse files Browse the repository at this point in the history
If the `--debug` flag is specified, log any error during minification to
the console.
  • Loading branch information
martincostello authored Sep 6, 2023
1 parent 4a9d97c commit e2779f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ function ncc (
}
catch (e) {
console.log('An error occurred while minifying. The result will not be minified.');
if (debugLog) {
console.log(e);
}
}
}

Expand Down

0 comments on commit e2779f4

Please # to comment.