gradlew assembleDebug you have to make sure to put the bundle into the right directory and give it the right name, so that gradle can find it.įor react-native versions 0.57 and above the bundle output path should be:Īndroid/app/build/generated/assets/react/debug/ gradlew assembleDebug you can simply set bundleInDebug: true in your app/adle file, inside the map.Īlternatively if you want to run react-native bundle manually and then create the APK with. If you are planning on building a debug APK, that will run without the packager, by invoking. bundle-output įile name where to store the resulting bundle, ex. Disabling minification can be useful for speeding up production builds for testing purposes. This defaults to false if dev is true, and true if dev is false. minify Īllows overriding whether bundle is minified. If false, warnings are disabled and the bundle is minified. Path to the root JS file, either absolute or relative to JS root. Path to the CLI configuration file -no-interactiveīuilds the JavaScript bundle for offline use. Path to a JavaScript file that exports a log reporter as a replacement for TerminalReporter -httpsĮnables https connections to the server -key Removes cached files -custom-log-reporter-path, -customLogReporterPath Specify a custom transformer to be used -reset-cache, -resetCache This defaults to the number of the cores available on your machine -transformer Specifies the maximum number of workers the worker-pool will spawn for transforming files. Specify any additional source extensions to be used by the packager -max-workers Specify any additional asset plugins to be used by the packager by full filepath -sourceExts Specify any additional folders to be added to the watch list -assetPlugins Path to a custom project root -watchFolders Starts the server that communicates with connected devices Options -port
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |