zcompress-vite-plugin 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Vite 生产构建资源压缩插件 — gzip / zstd / brotli,多线程并行,比 Node.js 方案快 5-10 倍。
|
|
4
4
|
|
|
5
|
-
## 安装
|
|
5
|
+
## 安装 · Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install zcompress-vite-plugin --save-dev
|
|
@@ -10,10 +10,11 @@ npm install zcompress-vite-plugin --save-dev
|
|
|
10
10
|
|
|
11
11
|
安装后自动下载对应平台的 zcompress 二进制。如果下载失败,手动安装:
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
zig build
|
|
16
|
-
|
|
13
|
+
| 平台 | 命令 |
|
|
14
|
+
|------|------|
|
|
15
|
+
| macOS | `brew install zstd brotli && zig build -Doptimize=ReleaseFast` |
|
|
16
|
+
| Linux | `apt install libzstd-dev libbrotli-dev && zig build -Doptimize=ReleaseFast` |
|
|
17
|
+
| Windows | 安装 [Zig](https://ziglang.org/download/),`choco install zstandard brotli`,然后 `zig build -Doptimize=ReleaseFast` |
|
|
17
18
|
|
|
18
19
|
## 使用
|
|
19
20
|
|