vite-plugin-singlefile-compression 1.1.3 → 1.1.4
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 +5 -25
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -97,39 +97,19 @@ export interface Options {
|
|
|
97
97
|
https://bddjr.github.io/vite-plugin-singlefile-compression/
|
|
98
98
|
|
|
99
99
|
```
|
|
100
|
-
vite
|
|
100
|
+
vite v6.0.6 building for production...
|
|
101
101
|
✓ 45 modules transformed.
|
|
102
102
|
rendering chunks (1)...
|
|
103
103
|
|
|
104
|
-
vite-plugin-singlefile-compression 1.1.
|
|
104
|
+
vite-plugin-singlefile-compression 1.1.3 building...
|
|
105
105
|
|
|
106
106
|
file:///D:/bddjr/Desktop/code/js/vite-plugin-singlefile-compression/test/dist/index.html
|
|
107
|
-
101.
|
|
107
|
+
101.02 KiB -> 52.1 KiB
|
|
108
108
|
|
|
109
109
|
Finish.
|
|
110
110
|
|
|
111
|
-
dist/index.html 53.
|
|
112
|
-
✓ built in
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
```html
|
|
116
|
-
<!DOCTYPE html><meta charset="UTF-8" /><link rel="icon" href="data:" /><meta
|
|
117
|
-
name="viewport"
|
|
118
|
-
content="width=device-width,initial-scale=1"
|
|
119
|
-
/><title>Vite App</title>
|
|
120
|
-
<script type="module">
|
|
121
|
-
fetch("data:application/gzip;base64,********")
|
|
122
|
-
.then((r) => r.blob())
|
|
123
|
-
.then((b) =>
|
|
124
|
-
new Response(b.stream().pipeThrough(new DecompressionStream("gzip")), {
|
|
125
|
-
headers: { "Content-Type": "text/javascript" },
|
|
126
|
-
}).blob()
|
|
127
|
-
)
|
|
128
|
-
.then((b) =>
|
|
129
|
-
import((b = URL.createObjectURL(b))).finally(() => URL.revokeObjectURL(b))
|
|
130
|
-
);
|
|
131
|
-
</script>
|
|
132
|
-
<div id="app"></div>
|
|
111
|
+
dist/index.html 53.35 kB
|
|
112
|
+
✓ built in 734ms
|
|
133
113
|
```
|
|
134
114
|
|
|
135
115
|
## Clone
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-singlefile-compression",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/bddjr/vite-plugin-singlefile-compression"
|
|
23
|
+
"url": "git+https://github.com/bddjr/vite-plugin-singlefile-compression.git"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
26
|
"vite-plugin",
|