FastpackJavaScript 应用打包器
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)
评论