Skip to content

Commit 4279d5b

Browse files
committed
Updated readme
1 parent 0c7f025 commit 4279d5b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ And run it:
2626
./node_modules/.bin/react-native-bundle-visualizer
2727

2828

29+
## Command line arguments
30+
31+
All command-line arguments are optional.
32+
33+
| Option | Description | Example |
34+
| --------------- | -------------------------------------------------- | --------------------------------- |
35+
| `platform` | Platform to build (default is **ios**) | `--platform android` |
36+
| `dev` | Dev or production build (default is **false**) | `--dev false` |
37+
| `entry-file` | Entry-file (when omitted tries to auto-resolve it) | `--entry-file ./index.android.js` |
38+
| `bundle-output` | Output bundle-file (default is **tmp**) | `--bundle-output ./myapp.bundle` |
39+
40+
41+
42+
2943
## Usage with older react-native versions and the Haul bundler
3044

3145
As of `react-native-bundle-visualizer` version 2.x, the direct output of the [Metro bundler](https://github.com/facebook/metro) is visualized using the [source-map-explorer](https://github.com/danvk/source-map-explorer).

0 commit comments

Comments
 (0)