我们需要在React-Native应用程序的生产环境中合并节点模块文件夹



我们需要合并节点模块文件夹,当代码进入生产时,我们需要合并生产中的节点模块文件夹,以用于React-nater App for React-Native App。如果是,那么为什么我们需要此文件夹,如果没有,我们如何忽略文件夹。

无需手动将某些内容(例如node_modules(合并到最终应用程序。当然,您可以使用Android Studio或Xcode来构建发行版本,但是使用以下命令包装应用程序将更加方便:

//Build release version
react-native run-android --variant=release 
react-native run-ios --configuration Release

参考:https://facebook.github.io/reaect-native/docs/running-on-device.html

最新更新