react-native bundle 初学
–entry-file
js file 根文件
–bundle-output
bundle 输出文件
–dev [boolean]
false:会压缩 bundle 文件。
true:不压缩 bundle 文件。
–platform [string]
ios or android
–assets-dest [string]
bundle 中引用的图片资源的输出路径
–sourcemap-output [string]
map 输出文件
–sourcemap-sources-root [string]
sourcemap 路径,若转换前的文件目录 和 bundle 在同一目录,则为空。
–verbose
是否打印 log。
example
react-native bundle --entry-file index.js --bundle-output ./output/AwesomeProject.bundle --dev false --assets-dest ./output --sourcemap-output ./output/AwesomeProject.map