moles-packer 是由携程框架团队研发的React Native 打包和拆包工具

网友投稿 616 2022-10-18

moles-packer 是由携程框架团队研发的React Native 打包和拆包工具

moles-packer 是由携程框架团队研发的React Native 打包和拆包工具

Moles Packer

Moles Packer is a light-weighted builder for React Native projects. You can create bundle(s), including a common (basic) bundle and one or more business bundles, from a standard React Native proejct. If pre-built common bundle supplied, you can also create business bundle from a stripped project (without ios, android, node_modules etc.).

Moles Packer is one of the key members in the Moles's tool chain.

Together with growing React Native, Moles Packer is also under continuous development and improvement, see ChangeLog for more details.

React Native Versions Supported

0.28.0-rc00.28.00.29.00.30.0-rc00.37.0 *

* means this version got limited support.

Install

# install globallynpm install -g moles-packer# command createdmoles-packer -vmoles-packer-common -v

Run In CLI

# create anreact-native init rn28 --version 0.28.0# build the project by Moles Packermoles-packer \ --input ./rn28 \ --entry index.ios.js \ --output ./build \ --bundle \ --verbose

Node.js API

var mp = require('moles-packer');var options = { 'input' : './rn28', 'entry' : 'index.ios.js', 'output' : './build', 'bundle' : true };mp.pack(options, function(err) { // !err means build success.});

User Manual

Moles Unprofessional GuideMoles 非权威指南

About Us

Moles is developed and maintained by Framework R&D from ctrip.com.

Any questions, please send mail to ctrip-moles@ctrip.com.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:SpringBoot2零基础到精通之profile功能与自定义starter
下一篇:Qt安卓工程报错:No rule to make target
相关文章

 发表评论

暂时没有评论,来抢沙发吧~