vite-plugin-singlefile-compression 2.2.0 → 2.2.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 +3 -3
- package/dist/index.js +1 -1
- package/package.json +34 -2
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Preview: https://bddjr.github.io/vite-plugin-singlefile-compression/
|
|
|
11
11
|
## Setup
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
npm i vite-plugin-singlefile-compression@latest
|
|
14
|
+
npm i -D vite-plugin-singlefile-compression@latest
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Then modify `vite.config.ts`, like [test/vite.config.ts](test/vite.config.ts)
|
|
@@ -156,7 +156,7 @@ vite v8.0.3 building client environment for production...
|
|
|
156
156
|
✓ 42 modules transformed.
|
|
157
157
|
rendering chunks (1)...
|
|
158
158
|
|
|
159
|
-
vite-plugin-singlefile-compression 2.2.
|
|
159
|
+
vite-plugin-singlefile-compression 2.2.2 deflate-raw base128-ascii
|
|
160
160
|
|
|
161
161
|
file:///D:/code/js/vite-plugin-singlefile-compression/test/dist/index.html
|
|
162
162
|
122.739 kB -> 50.220 kB
|
|
@@ -166,7 +166,7 @@ Finish.
|
|
|
166
166
|
computing gzip size...
|
|
167
167
|
dist/index.html 50.22 kB │ gzip: 43.77 kB
|
|
168
168
|
|
|
169
|
-
✓ built in
|
|
169
|
+
✓ built in 322ms
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
## Clone
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-singlefile-compression",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
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.",
|
|
@@ -31,10 +31,33 @@
|
|
|
31
31
|
"single",
|
|
32
32
|
"compression",
|
|
33
33
|
"compress",
|
|
34
|
+
"compressionstream",
|
|
35
|
+
"decompress",
|
|
36
|
+
"decompression",
|
|
37
|
+
"decompressionstream",
|
|
38
|
+
"compression streams api",
|
|
39
|
+
"compression streams",
|
|
34
40
|
"gzip",
|
|
41
|
+
"deflate",
|
|
42
|
+
"deflate-raw",
|
|
43
|
+
"deflateraw",
|
|
44
|
+
"br",
|
|
45
|
+
"brotli",
|
|
46
|
+
"zstd",
|
|
47
|
+
"zlib",
|
|
35
48
|
"inline",
|
|
49
|
+
"embed",
|
|
50
|
+
"bundle",
|
|
51
|
+
"bundler",
|
|
36
52
|
"frontend",
|
|
37
53
|
"front-end",
|
|
54
|
+
"framework",
|
|
55
|
+
"hmr",
|
|
56
|
+
"dev-server",
|
|
57
|
+
"build-tool",
|
|
58
|
+
"html",
|
|
59
|
+
"htm",
|
|
60
|
+
"htmlmin",
|
|
38
61
|
"js",
|
|
39
62
|
"javascript",
|
|
40
63
|
"css",
|
|
@@ -42,9 +65,18 @@
|
|
|
42
65
|
"rolldown",
|
|
43
66
|
"rolldown-vite",
|
|
44
67
|
"rollup",
|
|
68
|
+
"min",
|
|
69
|
+
"minification",
|
|
70
|
+
"minifier",
|
|
71
|
+
"minify",
|
|
72
|
+
"optimize",
|
|
73
|
+
"optimizer",
|
|
74
|
+
"pack",
|
|
75
|
+
"packer",
|
|
45
76
|
"vite-plugin-singlefile",
|
|
46
77
|
"vite-plugin-compression",
|
|
47
|
-
"vite-plugin-compression2"
|
|
78
|
+
"vite-plugin-compression2",
|
|
79
|
+
"html-minifier-terser"
|
|
48
80
|
],
|
|
49
81
|
"dependencies": {
|
|
50
82
|
"@types/html-minifier-terser": ">=7.0.2",
|