Skip to content

Instantly share code, notes, and snippets.

@sskoopa
Created October 26, 2016 17:12
Show Gist options
  • Save sskoopa/bf9f0093da7b0869378f5a737aa9e9ef to your computer and use it in GitHub Desktop.
Save sskoopa/bf9f0093da7b0869378f5a737aa9e9ef to your computer and use it in GitHub Desktop.
Why is my webpack bundle sooo big!?
#!/bin/bash
# This is intended for use with create-react-app
#npm install -g webpack-bundle-size-analyzer
NODE_ENV=production webpack --config node_modules/react-scripts/config/webpack.config.prod.js --json src/index.js | webpack-bundle-size-analyzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment