-
-
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
Not seeing parsed or gzip statistics, stat size only #86
Comments
I met the same problem, look forward to a reply. |
Hi, thanks for raising an issue! Seeing only stat sizes usually means that Do either of you get any error message logged to the console? For example, something like this?
There could be a bug where Are you able to create a |
I do not get any error or messages other than that Webpack Bundle Analyzer saved stats file and that it is started. Due to security I am unable to provide a stats file or source code. I can tell you the general structure of bundled output: dist Is there anything specifically I should be looking for in the stats file that might be missing or an indicator that something is wrong? |
Could you try applying Please follow these steps to generate a full tree of your bundle directory:
You should now have the file tree in your clipboard. Could you paste it here? |
|
Thanks! Things should work OK, I wonder what's up with Could you try adding You could double-check that it doesn't contain your source codes before that, though — with Could you also show me what the value of |
|
I am unfortunately unable to replicate this error without your bundled files. I tried creating a reproduction case and even ran it in a Windows 10 virtual machine (I'm developing on macOS), and it still works. Could you try running
Does this still only give you the stat sizes? |
There must be something wrong somewhere else in my configuration outside of the analyzer. If I attempt to run the CLI from a local install I get
If I install the analyzer globally then the CLI works fine and I get all three stats correctly. Running this instead from the local project works correctly as well:
|
Ah yes, I think it is due to npm installing binaries on Windows wrapped in
...I should've asked you to try this instead:
There seems to be lots of issues about this behavior when googling, and I even found one similar case in Does it work without a global installation of the analyzer if you try calling the |
Seeing as the global installation works, there might be some problems with how the plugin works on your machine. There might be some conflict with another plugin or config setting that I just haven't heard of before. Are you able to modify the Also have you at some point ever got a report that worked with an older version of the plugin before? Could you try the plugin with version 2.7.0 of |
@valscion |
bundleDir appears to be null:
UPDATE: I tried a few variations and it appears that regardless of whether I am running webpack-dev-server or generating a production build |
@drcmda could you open a separate issue for your problem? @MrHavard thank you for the analysis! This is what I feared was happening. Would you be able to create a minimal reproduction repository for this issue? I'm not really sure why this is happening, but it would be amazing to be able to replicate it myself to fix it :) |
Sorry been too busy to get a repo together. Will try to do that soon. |
And for the time being, you can also work around this by downgrading to |
Just having this issue myself. Could bundleDir be set by a command line option? I did notice that if I had my stat file placed into my dist folder and run webpack-bundle-analyzer off of that, it will display the other sizes correctly, so that could be a workaround. |
@Ixonal Type |
derp... Sorry, should've noticed that earlier. |
@Ixonal No problem =) |
I can only see the stat size when running it with webpack dev server. |
@PengyuanZhao it's how it should be because webpack dev server don't save output bundles in the real filesystem and there is nothing to parse. |
@th0r How to solve it? |
@warmhug, to see gzip and parsed sizes, don't use webpack-dev-server |
@warmhug Or if it's not so hard, could you read my message right above yours? |
@MrHavard Were you able to find some time to create a reproduction repo? |
Think it's related this. |
I think this may have been a issue to @angular/cli as I'm now using 1.3.0-rc.5 and the problem seem to have gone away. |
Having the same problems, could it be that webpack-bundle-analyzer just ignores the
It tries to load the app.js from the root directory, while Edit: Okay reading helps, I can just pass it as parameter. But, still, I'd love this to be an automated parameter <3 |
It is as automated as the CLI can be :) as it infers the directory from where your stats are. I think that this issue is too vague as there seems to be multiple causes for this case. I'll close this issue for now. Everyone's free to open new specific issues with a proper bug report, if you think you've faced a bug :) |
Issue description
I'm seeing stat size, but not parsed or gzip information. Is there something special that needs to be configured to see those for a production build? Would this need to be configured elsewhere in webpack stats configuration or within webpack-bundle-analyzer?
Technical info
Debug info
Using as a webpack plugin with the following settings:
What other Webpack plugins were used?
uglify, html-webpack-plugin, extract-text-webpack-plugin
The text was updated successfully, but these errors were encountered: