closure-webpack-plugin icon indicating copy to clipboard operation
closure-webpack-plugin copied to clipboard

When Closure exits with non-zero code but no stderr, output is not minified and there are no errors

Open ian-craig opened this issue 3 years ago • 0 comments

I hit this when the plugin decided to use 'native' Closure but vcredist was missing on a build agent. The .exe was returning a non-zero exit code but no stderr output, and the result was that Webpack reported success but the JS was not minified.

It looks like the compilerProcess error handling logic in the plugin just misses this edge case.

I'll submit a PR shortly.

ian-craig avatar Mar 26 '21 18:03 ian-craig