webpack-vsts-extension icon indicating copy to clipboard operation
webpack-vsts-extension copied to clipboard

Error/Warning message when Webpack build doesn't start/hangs

Open danchristian opened this issue 7 years ago • 4 comments

This was my own stupidity, but I spent a while debugging why it was failing to even begin the Webpack build and just hanging, before realising I had left a call to the BundleAnalyzerPlugin module in my Webpack production config. Removing/commenting this module fixed the issue. Not sure if it's possible to produce an error/warning for this in the future, but obviously it works locally but then silently fails in the build process.

Thanks again for the module.

danchristian avatar Mar 08 '18 10:03 danchristian

I'll try to reproduce it. So I assume I just have to include BundleAnalyzerPlugin into my webpack configuration for it.

jkanczler avatar Mar 19 '18 10:03 jkanczler

That should be the case yes.

danchristian avatar Mar 19 '18 13:03 danchristian

What do you think about the idea to be able to configure a timeout for the webpack task and after the timeout fail the task anyway and give a warning like:

The webpack task couldn't be finished in ${timeout}ms. Maybe the webpack-cli is running in watch mode or using bundle analyzer plugin?

jkanczler avatar Sep 12 '18 14:09 jkanczler

That would have helped in my situation. For me it sat there doing nothing for an hour until hitting the VSTS task timeout.

seanjmalone avatar Sep 12 '18 15:09 seanjmalone