Merge pull request #4299 from andrewsardone/bundle-dev-clarification

[Docs] Clarify --dev flag for react-native-bundle
This commit is contained in:
Alexander Kotliarskyi 2015-11-23 10:14:25 -08:00
commit 0f3ed2cdb7
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ You can also pack all the JavaScript code within the app itself. This way you ca
The bundle script supports a couple of flags: The bundle script supports a couple of flags:
* `--dev` - sets the value of `__DEV__` variable to true. When `true` it turns on a bunch of useful development warnings. For production it is recommended to set `__DEV__=false`. * `--dev` - a boolean with a default value of `true`. With the `--dev true` flag, the bundled JavaScript code turns on useful development warnings and limits performance optimizations. For production it is recommended to pass `--dev false`. Also for production, be sure to have your native build configuration set to `Release` (e.g., Xcode's Release configuration for iOS and gradle's `assembleRelease` task for Android) in order to disable things like the shake-to-show developer menu.
* `--minify` - pipe the JS code through UglifyJS. * `--minify` - pipe the JS code through UglifyJS.
Note that on 0.14 we'll change the API of `react-native bundle`. The major changes are: Note that on 0.14 we'll change the API of `react-native bundle`. The major changes are: