vite-plugin-singlefile-compression 2.0.11 → 2.0.13

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 CHANGED
@@ -9,7 +9,7 @@ Using [DecompressionStream](https://developer.mozilla.org/docs/Web/API/Decompres
9
9
  ## Setup
10
10
 
11
11
  ```
12
- npm i vite-plugin-singlefile-compression
12
+ npm i vite-plugin-singlefile-compression -D
13
13
  ```
14
14
 
15
15
  Then modify `vite.config.ts`, see [test/vite.config.ts](test/vite.config.ts)
package/dist/compress.js CHANGED
@@ -20,7 +20,7 @@ const compressors = {
20
20
  zstd: zlib.zstdCompressSync && function (buf) {
21
21
  return zlib.zstdCompressSync(buf, {
22
22
  params: {
23
- [zlib.constants.ZSTD_c_compressionLevel]: 22
23
+ [zlib.constants.ZSTD_c_compressionLevel]: 19
24
24
  }
25
25
  });
26
26
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-singlefile-compression",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "author": "bddjr",
5
5
  "license": "MIT",
6
6
  "description": "Compress all assets and embeds them into dist/index.html, making it convenient to share as a single HTML file.",