--entry-file <path> Path to the root JS file, either absolute or relative to JS root RN项目的入口文件相对/相对路径 --platform [string] Either "ios" or "android" 输入‘ios’或‘android’ --transformer [string] Specify a custom transformer to be used 指定自定义的transformer文件绝对/相对路径[default: "./node_modules/react-native/packager/transformer.js"] --dev [boolean] If false, warnings are disabled and the bundle is minified 如果为false, 不显示警告并且bundle会变小[default: true] --bundle-output <string> File name where to store the resulting bundle, ex. /tmp/groups.bundle 打包后的文件输出目录, 例: /tmp/groups.bundle --bundle-encoding [string] Encoding the bundle should be written in (https://nodejs.org/api/buffer.html#buffer_buffer). 归档文件至 可参考链接https://nodejs.org/api/buffer.html#buffer_buffer. --max-workers [number] Specifies the maximum number of workers the worker-pool will spawn for transforming files. This defaults to the number of the cores available on your machine. 指定用于产生转换文件的worker-pool的最大工作数,默认与设备处理器核心相同 --sourcemap-output [string] File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map 映射文件的名称 --sourcemap-sources-root [string] Path to make sourcemap's sources entries relative to, ex. /root/dir 映射文件的路径 --sourcemap-use-absolute-path Report SourceMapURL using its full path 使用SourceMapURL的绝对路径 --assets-dest [string] Directory name where to store assets referenced in the bundle 打包图片资源的存储的绝对/相对路径 --verbose Enables logging 显示打包过程 --reset-cache Removes cached files 清除缓存文件 --read-global-cache Try to fetch transformed JS code from the global cache, if configured. --config [string] Path to the CLI configuration file 命令行的配置文件路径 -h, --help output usage information