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
Bundle analyzer in server mode crashes when running webpack in --watch mode #37
Comments
Yes, seems like the server mode tries to restart the server when it is already complete. Using a |
+1 |
@nashwaan @akatechis Could you guys explain your use cases? Why do you need it to support watch mode? Do you want it to dynamically update treemap according to the changes you made to the sources? |
Exactly. |
Yes, it would be nice to leave the plugin enabled, and use the bundle analyzer at will. As it stands, I have to stop my WDS, insert the plugin, start the server, use the analyzer to see the changes, then stop, remove it, restart WDS, and continue my dev workflow. |
Support for watch mode and Webpack Dev Server landed in |
Thanks @th0r for adding the support for |
Issue description
I'm using webpack in watch mode, and the bundle analyzer to analyze/serve the analysis in browser. The initial run works great, but when I modify a file, the bundle analyzer causes the process to crash with the following error:
Looks like it's trying to create a new server with the same port to host the file.
Technical info
Debug info
How do you use this module?
As a plugin in my
webpack.config.js
fileIf plugin, what options were provided?
What other Webpack plugins were used?
"html-webpack-plugin": "^2.26.0"
The text was updated successfully, but these errors were encountered: