Replies: 1 comment 2 replies
-
Hi! Thanks for the the suggestion. I think it's out of scope for If we'd go with adding environment variables support, I'd hope we'd do it for all possible options and not only the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue description
By default, webpack bundle analyzer starts a server, which means that the webpack process will never terminate.
This is undesirable in CI and other non-interactive environments - your jobs will hang indefinitely. Currently (as far as I can tell) there's no way to prevent this from happening without changing the webpack configuration code. This isn't always possible in CI (e.g. it's someone else's code, or it's an older version of your own code prior to the configuration change.)
It would be great if there was some way to override the
analyzerMode
setting from the command-line, e.g.WEBPACK_BUNDLE_ANALYZER_MODE=json
which could be set in non-interactive environments to ensure that the process will never hang.Happy to submit a PR if this sounds useful.
Technical info
Beta Was this translation helpful? Give feedback.
All reactions