-
Notifications
You must be signed in to change notification settings - Fork 1.4k
upgrade gatsby-plugin-webpack-bundle-analyser-v2 #6450
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
base: master
Are you sure you want to change the base?
upgrade gatsby-plugin-webpack-bundle-analyser-v2 #6450
Conversation
Signed-off-by: Lee Calcote <[email protected]>
|
|
Signed-off-by: Lee Calcote <[email protected]>
|
🚀 Preview for commit 5d049b8 at: https://68261c0b2513bd0dcb33beb1--layer5.netlify.app |
Signed-off-by: Lee Calcote <[email protected]>
| options: { | ||
| disable: true | ||
| devMode: true, | ||
| disable: process.env.NODE_ENV !== "production", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be not better if it is enabled for development also because we want analyzer to run for dev mode too to check various things like the bundle size and all?
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
…e-analyser-v2 Signed-off-by: Lee Calcote <[email protected]>
| devMode: true, | ||
| disable: process.env.NODE_ENV !== "production", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both will contradicts to each other
| reportFilename: "./report.html", | ||
| openAnalyzer: true, | ||
| analyzerPort: "8888", | ||
| analyzerHost: "http://localhost", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the build is failing because the webpack bundle analyzer is configured with analyzerHost: "http://localhost", but this option expects only the hostname (for example, "localhost") and not a full URL.
After modifying this, the build started working as expected.

Signed-off-by: Lee Calcote [email protected]