ReactNative 打bundle脚本

2019-01-22  本文已影响0人  able_

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

上一篇 下一篇

猜你喜欢

热点阅读