How to generate webpack stats JSON file

I see that there is an “analyze” folder in the “build” folder after running frontity build.

I’m looking for a way to generate the Webpack stats json that can be used on https://webpack.github.io/analyse/ to do more in-depth analysis, such as the dependency gragh showing relationships between all bundled modules.

Example:

Thanks!

Hey @fancheng33, we have just released a way to configure Webpack, so you should be able to use that to export the webpack stats or use other analyzer plugins.

Docs are still not finished, but you can see how to use it and follow the conversation here: Customize Webpack configuration - #50 by SantosGuillamot