There is no difference in the stats currently. If there will be, it's propably good to support both formats.
Sergey Lymar
@zaggy
Not many people here, right? I think it will be better to support both versions of webpack if there will be any changes soon in json structure.
Jon Wong
@jnwng
hey all. excited to help out on this
Mattia Occhiuto
@mattiaocchiuto
hello everybody, really excited to join this team!
Luqin
@luqin
Hi, so excited for this tool.
Mateusz Wijas
@mmw
hey everyone, looking forward to working together
Samir Alajmovic
@samiralajmovic
Greetings everyone, excited to help and make this great tool even greater
Yaroslav Serhieiev
@noomorph
Hello everyone! I've created an issue with the feature list (mostly citing @sokra) - add your ideas to it too.
webpack/analyse-tool#5
Sergey Lymar
@zaggy
Hi. @sokra , what is our next plan of actions. This started great, hope we can push it further with the same enthusiasm. Do you need any help in that?
I can start to bootstrap an application or to do whatever is useful at our current stage.
Tobias Koppers
@sokra
I've put together a plan here: webpack/analyse-tool#3 You can summarize the feature list in the wiki, or start bootstraping the basic infrastructure.
Feel free to tweak the plan. Everybody should be able to edit it.
Tim Sandberg
@largeDachshund
i'm trying to use the analyse tool. when i upload my "stats.json" that was generated from my build, i'm getting all sorts of parsing errors. i'm on a windows machine. my path to my angular 2 project is something like c:\users\tim\visual studio\some more spaces\theproject\stats.json. how can i generate the stats.json without getting this parsing error at upload?
Heya! I noticed the analyse tool's been languishing a little so I decided to, well, write an alternative from scratch: https://akx.github.io/webpack-xray/
It's still an early beta but it supports Webpack 3 and 4 stats files pretty nicely
_
Davit Yavryan
@davityavryan
Hey @akx
Aarni Koskela
@akx
:wave:
Davit Yavryan
@davityavryan
it fails for my stats.json
Aarni Koskela
@akx
Okay. Can you share it?
Davit Yavryan
@davityavryan
nope sorry :)
I will try to debug. If I will find bug easy will let you know
Aarni Koskela
@akx
Well, uhm, since it's only the home view that's breaking, try adding /#/chunks to the url? :D
(I suppose I should add an error boundary in there...)
Davit Yavryan
@davityavryan
hmmm... no error but empty list
Aarni Koskela
@akx
Mm, your stats.json doesn't have an entrypoints key, I guess
Okay, then I think there's something rather seriously wrong with the stats.json file :D
Davit Yavryan
@davityavryan
git that. will try to figure out
thanks
p.s. 94Mb stats.json file :/
Aarni Koskela
@akx
You can also try /#/modules and /#/assets...
Davit Yavryan
@davityavryan
probably it is huge because of sourcemaps
nope. didn't help. but thanks
Aarni Koskela
@akx
Okay. Well, I'd love to see that stats.json file, I've only tried with very limited examples so far
In the webpack-xray repo there's a tool that strips source out of stats.json files (scripts/generate-example-data.js)
Davit Yavryan
@davityavryan
oh cool
Aarni Koskela
@akx
so if you're okay with sharing the stats file without code (but paths and everything else intact), let me know
Davit Yavryan
@davityavryan
ok. sure. thanks
Aarni Koskela
@akx
also, that script isn't meant for interactive use, but I'm sure you can see where to change the paths :D