Update zip.md

This commit is contained in:
小弟调调™ 2021-01-07 23:05:10 +08:00 committed by GitHub
parent 0309359f12
commit dfb6b0ce03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,12 @@ zip -q -r html.zip html
zip -q -r html.zip *
```
压缩 `example/basic/` 目录内容到 `basic.zip` 压缩包中 `-x` 指定排除目录,注意没有双引号将不起作用。
```shell
zip -r basic.zip example/basic/ -x "example/basic/node_modules/*" -x "example/basic/build/*" -x "example/basic/coverage/*"
```
压缩效率选择:
```shell