diff --git a/src/index.js b/src/index.js index 03b3f8f6..6d6774ce 100644 --- a/src/index.js +++ b/src/index.js @@ -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); + } } }