-
Notifications
You must be signed in to change notification settings - Fork 2
Using source map explorer
Jeff Held edited this page May 15, 2017
·
1 revision
- Install it
npm i -g source-map-explorer
Yarn:
yarn global add source-map-explorer
- Make sure you've built your project; with Codesplain, that's
npm run build
Yarn:
yarn build
- Go to the static js files; for Codesplain, that's
cd build/static/js
- Run source-map-explorer on the bundled JS file and its map, like so:
source-map-explorer main.js main.js.map
-
Marvel at all of the unneccessary code in your bundle.
-
Make an alias so you don't have to type out source-map-explorer (I use
sme
)