diff --git a/README.md b/README.md index 4357d9b..9888c71 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # vite plugin singlefile compression -This plugin compresses all JavaScript, CSS, images, etc. resources using gzip and embeds them into `dist/index.html`, making it convenient to share as a single HTML file. +Compress all assets and embeds them into `dist/index.html`, making it convenient to share as a single HTML file. The recipient can open it directly in the browser without manually unzipping the file. @@ -60,35 +60,35 @@ const router = createRouter({ ```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 + /** + * 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; } ``` @@ -113,7 +113,23 @@ dist/index.html 53.60 kB ``` ```html -Vite App
+Vite App + +
``` ## Clone diff --git a/package-lock.json b/package-lock.json index c90c6b4..84e0fba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vite-plugin-singlefile-compression", - "version": "1.1.1", + "version": "1.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vite-plugin-singlefile-compression", - "version": "1.1.1", + "version": "1.1.3", "license": "MIT", "dependencies": { "@types/html-minifier-terser": "^7.0.2", diff --git a/package.json b/package.json index d155d8a..c381031 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-singlefile-compression", - "version": "1.1.2", + "version": "1.1.3", "main": "dist/index.js", "typings": "dist/index.d.ts", "files": [