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!