Skip to content

Commit e2779f4

Browse files
feat: Log minification error when --debug (#1102)
If the `--debug` flag is specified, log any error during minification to the console.
1 parent 4a9d97c commit e2779f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,9 @@ function ncc (
522522
}
523523
catch (e) {
524524
console.log('An error occurred while minifying. The result will not be minified.');
525+
if (debugLog) {
526+
console.log(e);
527+
}
525528
}
526529
}
527530

0 commit comments

Comments
 (0)