Skip to content

Development environment

Thomas Schaffter edited this page Sep 14, 2019 · 2 revisions

Webpack Bundle Analyzer

This tool enables to analyze the content of the web app bundle. For example, we want the bundle to include only the code and libraries that are used. Once Webpack Bundle Analyzer is installed and configure, run npm run build to build the app. The page http://127.0.0.1:8888/ should then open in the browser to visualize the content of the app bundle. Note that the stats are saved to ./dist/client/stats.json.

The command ./node_modules/.bin/webpack-bundle-analyzer ./dist/client/stats.json is used to visualize the content of the stats file specified.

Clone this wiki locally