mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Analyse also dependencies bundle (#6438)
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.
This commit is contained in:
committed by
Ian Schmitz
parent
6c8e2e53c5
commit
01ecfc1337
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user