-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
No Parsed/Gziped sizes if there is build hash in output path #297
Comments
Are you able to create a reproduction repository so that some contributor or us could check this error? |
Sure, there you go https://github.com/martinkadlec0/wba-build-hash |
Ah ok, now I get it! Thank you, the reproduction repository helped. This does seem to be a lack of a feature that could also be categorized as a bug. The crux is this webpack config:
and that |
So the problem is here: webpack-bundle-analyzer/src/BundleAnalyzerPlugin.js Lines 137 to 138 in 95d03b7
The issue is not present when generating stats JSON separately and using the CLI to open the reporter: So we should figure out a way to get the bundle directory location from somewhere else than |
Damn, the The docs would indicate that |
Ooh nice: webpack/webpack#1648 EDIT: Hmm, but I wonder if it's possible for us to use this functionality, given we don't depend on |
I had time to create a proof of concept of fixing this issue in #304, but unfortunately I don't have more time right now to figure this out and I don't know when I would have time. |
Thanks a lot for looking into it 👍 |
Update on this issue? |
No updates |
I found out that Sadly I'm not the pro webpack user, who can find the right line to edit. |
This is the PR that I got started on that made some progress, but then got a bit stuck and uncertain if I was heading in the right direction: #304 |
Issue description
If there as build hash in webpack's output path, I get following error from WBA:
Error parsing bundle asset "/xxx/app/dist/[hash]/app.js": no such file
.My webpack output config:
This causes that there is no gziped/parsed size on the WBA page.
Technical info
Debug info
How do you use this module? As CLI utility or as plugin?
Plugin
If plugin, what options were provided? (e.g.
new BundleAnalyzerPlugin({ analyzerMode: 'disabled', generateStatsFile: true })
)No options
What other Webpack plugins were used?
webpack.DefinePlugin
CircularDependencyPlugin
FlowStatusWebpackPlugin
ExtractCssChunks
HtmlWebpackPlugin
SpriteLoaderPlugin
Demo repo
https://github.com/martinkadlec0/wba-build-hash
The text was updated successfully, but these errors were encountered: