Skip to content

Commit

Permalink
docs: 添加 生成构建文件压缩包 说明
Browse files Browse the repository at this point in the history
  • Loading branch information
booxood authored Jul 21, 2017
1 parent f90e323 commit 7ca5cdb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/DETAIL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 7ca5cdb

Please sign in to comment.