ReactNative生成android平台的bundle文件命令
ReactNative生成android平臺的bundle文件命令
2016年11月03日 23:23:28 閱讀數:4869注:如果assets文件沒有正確生成,需要手機創建或授權
網上的其它的很多都不好用,這個是好用的
進行React Native的根目錄下執行以下命令
?
命令一
node node_modules/react-native/local-cli/cli.js bundle --platform android --dev true --reset-cache --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle —sourcemap-output android/app/src/main/assets/index.android.map —assets-dest android/app/src/main/res/ ?
命令二
react-native bundle --platform android --dev false --entry-file index.android.js ?--bundle-output android/app/src/main/assets/index.android.bundle ?--assets-dest android/app/src/main/res/ ?
?
命令一不好用,就用命令二
轉載于:https://www.cnblogs.com/honeynm/p/9007130.html
總結
以上是生活随笔為你收集整理的ReactNative生成android平台的bundle文件命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Linux】Centos7 解压zip
- 下一篇: python:数组/列表(remove(