Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danchristian opened this issue Mar 8, 2018 · 4 comments
Open

Comments

@danchristian
Copy link

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.

@jkanczler
Copy link
Member

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

@danchristian
Copy link
Author

That should be the case yes.

@jkanczler
Copy link
Member

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?

@seanjmalone
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants