Skip to content

Commit

Permalink
Analyse also dependencies bundle (#6438)
Browse files Browse the repository at this point in the history
The current `analyze` script only analises the `/src` code. This change leverages new version of `source-map-explorer` that is able to analyse multiple bundles at once, including the  3rd party dependencies bundle which is in my opinion even more important to analyze.
  • Loading branch information
Kamahl19 authored and ianschmitz committed Feb 21, 2019
1 parent 6c8e2e5 commit 01ecfc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/analyzing-the-bundle-size.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Then in `package.json`, add the following line to `scripts`:

```diff
"scripts": {
+ "analyze": "source-map-explorer build/static/js/main.*",
+ "analyze": "source-map-explorer 'build/static/js/*.js'",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
Expand Down

0 comments on commit 01ecfc1

Please sign in to comment.