美文网首页
ReactNative 打bundle脚本

ReactNative 打bundle脚本

作者: able_ | 来源:发表于2019-01-22 20:16 被阅读0次

if [ # -eq "0" ]; then React-native bundle --entry-file index.ios.js --bundle-output ./ios/bundle/index.ios.bundle --platform ios --assets-dest ./ios/bundle --dev false React-native bundle --entry-file index.android.js --bundle-output ./android/app/src/main/assets/index.android.bundle --platform android --assets-dest ./android/app/src/main/res/ --dev false elif [# -eq "1" ]; then
if [ 1 == "ios" ]; then React-native bundle --entry-file index.ios.js --bundle-output ./ios/bundle/index.ios.bundle --platform ios --assets-dest ./ios/bundle --dev false elif [1 == "android" ]; then
React-native bundle --entry-file index.android.js --bundle-output ./android/app/src/main/assets/index.android.bundle --platform android --assets-dest ./android/app/src/main/res/ --dev false
fi
fi

相关文章

网友评论

      本文标题:ReactNative 打bundle脚本

      本文链接:https://www.haomeiwen.com/subject/ribrjqtx.html