Fastpack 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
Fastpack 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
Fastpack 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT
开发语言 JavaScript
操作系统 跨平台
软件类型 开源软件
开源组织
地区 不详
投 递 者 王练
适用人群 未知
收录时间 2018-07-17

软件简介

Fastpack 是一个 JavaScript 应用打包器,目标是做到对于中型应用(约1000个模块)的打包时间小于1000ms,增量重新打包时间低于100ms。 

$ npm install -g fpack
$ fpack --help

 

基准测试结果:

Example

$ fpack ./ui/index.js \
    -o build \
    -w \
    --dev \
    --nm "$(pwd)/node_modules" \
    --nm node_modules \
    --preprocess='^ui/.+\.js$' \
    --preprocess='^node_modules/components/[^/]+\.js$'

Packed in 2.148s. Bundle: 5.87Mb. Modules: 1602. Cache: empty. Mode: development.
Watching file changes (Ctrl+C to stop)

$ fpack ./ui/index.js \
    -o build \
    -w \
    --dev \
    --nm "$(pwd)/node_modules" \
    --nm node_modules \
    --preprocess='^ui/.+\.js$' \
    --preprocess='^node_modules/components/[^/]+\.js$'

Packed in 0.176s. Bundle: 5.87Mb. Modules: 1602. Cache: used. Mode: development.
Watching file changes (Ctrl+C to stop)
展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论

点击加入讨论🔥(11) 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
11 评论
38 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部