Skip to content

Commit

Permalink
1.3.1 + effect.jpg
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjr committed Jan 12, 2025
1 parent 25f1ad1 commit 63426ff
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 4 deletions.
52 changes: 51 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,54 @@ const router = createRouter({
See [src/options.ts](src/options.ts)
```ts
export interface Options {
/**
* https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference
* @default defaultHtmlMinifierTerserOptions
*/
htmlMinifierTerser?: htmlMinifierOptions | boolean

/**
* Try inline html used assets, if inlined or not used in JS.
* @default true
*/
tryInlineHtmlAssets?: boolean

/**
* Remove inlined asset files.
* @default true
*/
removeInlinedAssetFiles?: boolean

/**
* Try inline html icon, if icon is in public dir.
* @default true
*/
tryInlineHtmlPublicIcon?: boolean

/**
* Remove inlined html icon files.
* @default true
*/
removeInlinedPublicIconFiles?: boolean

/**
* Use Base128 to encode gzipped script.
* If false, use Base64.
* https://www.npmjs.com/package/base128-ascii
* @default true
*/
useBase128?: boolean

/**
* Compress format.
* @default "deflate-raw"
*/
compressFormat?: compressFormat
}
```
## Effect
https://bddjr.github.io/vite-plugin-singlefile-compression/
Expand All @@ -48,7 +96,7 @@ vite v6.0.7 building for production...
45 modules transformed.
rendering chunks (1)...

vite-plugin-singlefile-compression 1.3.0 building...
vite-plugin-singlefile-compression 1.3.1 building...

file:///D:/bddjr/Desktop/code/js/vite-plugin-singlefile-compression/test/dist/index.html
101.56 KiB -> 46.76 KiB
Expand All @@ -59,6 +107,8 @@ dist/index.html 47.88 kB
built in 677ms
```
![](effect.jpg)
## Clone
```
Expand Down
Binary file added effect.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-singlefile-compression",
"version": "1.3.0",
"version": "1.3.1",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
Expand Down

0 comments on commit 63426ff

Please sign in to comment.