Skip to content

Instantly share code, notes, and snippets.

@hngl
Last active June 18, 2020 14:55
Show Gist options
  • Save hngl/0489ee877d829a1792aed32e3c572cd2 to your computer and use it in GitHub Desktop.
Save hngl/0489ee877d829a1792aed32e3c572cd2 to your computer and use it in GitHub Desktop.
Webpack
NODE_ENV=production bin/webpack --config config/webpack/production.js --profile --json > stats.json
# Serve the chart, do not forget to provide the public/packs argument to show real sizes
./node_modules/.bin/webpack-bundle-analyzer stats.json public/packs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment