I'm Generating the release APK for Android and want to test it without minifying the code.
How can I generate a release version for Android or iOS without minify the code?
Thanks.
If you are using the default react-native cli you just need to use --minify false.
e.g.
node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --minify false --dev false --reset-cache --bundle-output './ios/MobileTravelAdvisor/main.jsbundle' --assets-dest './ios'
Haul to the rescue,
Finally I found a solution, it seems that using Haul to generate the bundle is possible with the flag --minify false
, use it with the command haul bundle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With