From 7ca5cdb990f9b5e9d5c79816cd619d471c476395 Mon Sep 17 00:00:00 2001 From: Liucw Date: Sat, 22 Jul 2017 01:19:54 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=20=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6=E5=8E=8B=E7=BC=A9=E5=8C=85?= =?UTF-8?q?=20=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/DETAIL.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/DETAIL.md b/doc/DETAIL.md index 326fbdf..70078a0 100644 --- a/doc/DETAIL.md +++ b/doc/DETAIL.md @@ -112,4 +112,12 @@ elf build -d '.' # 查看整个配置 设置 `enableWebpackVisualizer` 为 `true`,执行构建命令 `elf build` 后,会在 `output.path` 目录中会生成文件 `webpack-stats.html`,用浏览器直接打开,可以查看分析构建文件的组成。 +## 生成构建文件压缩包 +执行 `elf build` 时,支持参数 `-a, --archive [name]`,可将构建输出的文件打包。例如 + +```sh +elf build -a # 生成 dist.zip + +elf build -a build.tar # 生成 build.tar +```