Is there a way to handle errors that occur during optimisation. For example, If there is an error in a javascript file, the file should be included, but it should not be optimised . and is there an option to generate a log for the errors.
My build.js
({
appDir: __dirname,
baseUrl: "/",
dir: "production-build",
optimize: 'uglify2',
optimizeCss: 'standard',
removeCombined: true,
preserveLicenseComments: false
})