vite-plugin-singlefile-compression 1.3.2 → 1.3.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/LICENSE.txt +0 -0
- package/README.md +5 -5
- package/dist/KiB.d.ts +0 -0
- package/dist/KiB.js +0 -0
- package/dist/compress.d.ts +0 -0
- package/dist/compress.js +0 -0
- package/dist/dataurl.d.ts +0 -0
- package/dist/dataurl.js +0 -0
- package/dist/getTemplate.d.ts +0 -0
- package/dist/getTemplate.js +0 -0
- package/dist/getVersion.d.ts +0 -0
- package/dist/getVersion.js +2 -2
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1 -1
- package/dist/options.d.ts +0 -0
- package/dist/options.js +0 -0
- package/dist/template/LICENSE.txt +0 -0
- package/dist/template/assets.js +0 -0
- package/dist/template/base128.js +1 -1
- package/dist/template/base64.js +0 -0
- package/package.json +2 -2
package/LICENSE.txt
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -96,15 +96,15 @@ vite v6.0.7 building for production...
|
|
|
96
96
|
✓ 45 modules transformed.
|
|
97
97
|
rendering chunks (1)...
|
|
98
98
|
|
|
99
|
-
vite-plugin-singlefile-compression 1.3.
|
|
99
|
+
vite-plugin-singlefile-compression 1.3.4 building...
|
|
100
100
|
|
|
101
|
-
file:///
|
|
102
|
-
101.56 KiB -> 46.
|
|
101
|
+
file:///D:/bddjr/Desktop/code/js/vite-plugin-singlefile-compression/test/dist/index.html
|
|
102
|
+
101.56 KiB -> 46.32 KiB
|
|
103
103
|
|
|
104
104
|
Finish.
|
|
105
105
|
|
|
106
|
-
dist/index.html 47.
|
|
107
|
-
✓ built in
|
|
106
|
+
dist/index.html 47.42 kB
|
|
107
|
+
✓ built in 696ms
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|

|
package/dist/KiB.d.ts
CHANGED
|
File without changes
|
package/dist/KiB.js
CHANGED
|
File without changes
|
package/dist/compress.d.ts
CHANGED
|
File without changes
|
package/dist/compress.js
CHANGED
|
File without changes
|
package/dist/dataurl.d.ts
CHANGED
|
File without changes
|
package/dist/dataurl.js
CHANGED
|
File without changes
|
package/dist/getTemplate.d.ts
CHANGED
|
File without changes
|
package/dist/getTemplate.js
CHANGED
|
File without changes
|
package/dist/getVersion.d.ts
CHANGED
|
File without changes
|
package/dist/getVersion.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
-
import
|
|
3
|
-
export const { version } = JSON.parse(fs.readFileSync(
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
3
|
+
export const { version } = JSON.parse(fs.readFileSync(fileURLToPath(import.meta.resolve("../package.json"))).toString());
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ function setConfig(config) {
|
|
|
49
49
|
}
|
|
50
50
|
async function generateBundle(bundle, config, options) {
|
|
51
51
|
console.log(pc.cyan('\n\nvite-plugin-singlefile-compression ' + version) + pc.green(' building...'));
|
|
52
|
-
const distURL = pathToFileURL(
|
|
52
|
+
const distURL = pathToFileURL(config.build.outDir).href + '/';
|
|
53
53
|
const globalDelete = new Set();
|
|
54
54
|
const globalDoNotDelete = new Set();
|
|
55
55
|
const globalRemoveDistFileNames = new Set();
|
package/dist/options.d.ts
CHANGED
|
File without changes
|
package/dist/options.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/template/assets.js
CHANGED
|
File without changes
|
package/dist/template/base128.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function l(e){let t=new Uint8Array(Math.floor(e.length/8*7)),a=0,c=0,r,o=()=>(r=e.charCodeAt(a++))>>7?r=0:r;for(;a<e.length;)t[c++]=o()<<1|o()>>6,t[c++]=r<<2|o()>>5,t[c++]=r<<3|o()>>4,t[c++]=r<<4|o()>>3,t[c++]=r<<5|o()>>2,t[c++]=r<<6|o()>>1,t[c++]=r<<7|o();return t}new Response(new ReadableStream({start(e){e.enqueue(l("<script>")),e.close()}}).pipeThrough(new DecompressionStream("<format>")),{headers:{"Content-Type":"text/javascript"}}).blob().then(e=>import(e=URL.createObjectURL(e)).finally(()=>URL.revokeObjectURL(e)))
|
package/dist/template/base64.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-singlefile-compression",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@types/html-minifier-terser": "^7.0.2",
|
|
44
44
|
"@types/node": "^22.9.3",
|
|
45
|
-
"base128-ascii": "^2.0
|
|
45
|
+
"base128-ascii": "^2.1.0",
|
|
46
46
|
"esbuild": "^0.24.0",
|
|
47
47
|
"html-minifier-terser": "^7.2.0",
|
|
48
48
|
"mime": "^4.0.4",
|