vite-plugin-singlefile-compression 1.3.0 → 1.3.1
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 +51 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,54 @@ const router = createRouter({
|
|
|
39
39
|
|
|
40
40
|
See [src/options.ts](src/options.ts)
|
|
41
41
|
|
|
42
|
+
```ts
|
|
43
|
+
export interface Options {
|
|
44
|
+
/**
|
|
45
|
+
* https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference
|
|
46
|
+
* @default defaultHtmlMinifierTerserOptions
|
|
47
|
+
*/
|
|
48
|
+
htmlMinifierTerser?: htmlMinifierOptions | boolean
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Try inline html used assets, if inlined or not used in JS.
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
tryInlineHtmlAssets?: boolean
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Remove inlined asset files.
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
removeInlinedAssetFiles?: boolean
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Try inline html icon, if icon is in public dir.
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
tryInlineHtmlPublicIcon?: boolean
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Remove inlined html icon files.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
removeInlinedPublicIconFiles?: boolean
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Use Base128 to encode gzipped script.
|
|
76
|
+
* If false, use Base64.
|
|
77
|
+
* https://www.npmjs.com/package/base128-ascii
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
useBase128?: boolean
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Compress format.
|
|
84
|
+
* @default "deflate-raw"
|
|
85
|
+
*/
|
|
86
|
+
compressFormat?: compressFormat
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
42
90
|
## Effect
|
|
43
91
|
|
|
44
92
|
https://bddjr.github.io/vite-plugin-singlefile-compression/
|
|
@@ -48,7 +96,7 @@ vite v6.0.7 building for production...
|
|
|
48
96
|
✓ 45 modules transformed.
|
|
49
97
|
rendering chunks (1)...
|
|
50
98
|
|
|
51
|
-
vite-plugin-singlefile-compression 1.3.
|
|
99
|
+
vite-plugin-singlefile-compression 1.3.1 building...
|
|
52
100
|
|
|
53
101
|
file:///D:/bddjr/Desktop/code/js/vite-plugin-singlefile-compression/test/dist/index.html
|
|
54
102
|
101.56 KiB -> 46.76 KiB
|
|
@@ -59,6 +107,8 @@ dist/index.html 47.88 kB
|
|
|
59
107
|
✓ built in 677ms
|
|
60
108
|
```
|
|
61
109
|
|
|
110
|
+

|
|
111
|
+
|
|
62
112
|
## Clone
|
|
63
113
|
|
|
64
114
|
```
|