vite-plugin-singlefile-compression 1.2.3 → 1.2.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 +2 -2
- package/dist/template-assets.js +1 -1
- package/dist/template.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ vite v6.0.6 building for production...
|
|
|
102
102
|
✓ 45 modules transformed.
|
|
103
103
|
rendering chunks (1)...
|
|
104
104
|
|
|
105
|
-
vite-plugin-singlefile-compression 1.2.
|
|
105
|
+
vite-plugin-singlefile-compression 1.2.4 building...
|
|
106
106
|
|
|
107
107
|
file:///D:/bddjr/Desktop/code/js/vite-plugin-singlefile-compression/test/dist/index.html
|
|
108
108
|
101.02 KiB -> 46.52 KiB
|
|
@@ -110,7 +110,7 @@ vite-plugin-singlefile-compression 1.2.3 building...
|
|
|
110
110
|
Finish.
|
|
111
111
|
|
|
112
112
|
dist/index.html 47.64 kB
|
|
113
|
-
✓ built in
|
|
113
|
+
✓ built in 690ms
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
## Clone
|
package/dist/template-assets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{
|
|
1
|
+
{let e={"":""};for(let o in e){for(let r of document.querySelectorAll(`[src="data:${o}"]`))r.src=e[o];for(let r of document.querySelectorAll(`[href="data:${o}"]`))r.href=e[o]}}
|
package/dist/template.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
fetch("data:application/gzip;base64,{<script>}").then(
|
|
1
|
+
fetch("data:application/gzip;base64,{<script>}").then(e=>new Response(e.body.pipeThrough(new DecompressionStream("gzip")),{headers:{"Content-Type":"text/javascript"}}).blob()).then(e=>import(e=URL.createObjectURL(e)).finally(()=>URL.revokeObjectURL(e)))
|