upgrade gatsby-plugin-webpack-bundle-analyser-v2#6450
Conversation
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
|
|
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
|
🚀 Preview for commit 5d049b8 at: https://68261c0b2513bd0dcb33beb1--layer5.netlify.app |
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
| options: { | ||
| disable: true | ||
| devMode: true, | ||
| disable: process.env.NODE_ENV !== "production", |
There was a problem hiding this comment.
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 <lee.calcote@layer5.io>
| devMode: true, | ||
| disable: process.env.NODE_ENV !== "production", |
There was a problem hiding this comment.
Both will contradicts to each other
| reportFilename: "./report.html", | ||
| openAnalyzer: true, | ||
| analyzerPort: "8888", | ||
| analyzerHost: "http://localhost", |
There was a problem hiding this comment.
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 lee.calcote@layer5.io