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.
Files changed (2) hide show
  1. package/README.md +6 -5
  2. 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
- ```bash
14
- brew install zcompress # macOS
15
- zig build install # 从源码编译
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zcompress-vite-plugin",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "High-performance multi-threaded asset compression for Vite — powered by Zig",
5
5
  "type": "module",
6
6
  "main": "index.js",