-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update deps, add prettier config, jsdoc comment (#5)
- Loading branch information
1 parent
579d721
commit 4cdba54
Showing
13 changed files
with
2,869 additions
and
961 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var n=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var f=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of p(e))!s.call(t,i)&&i!==r&&n(t,i,{get:()=>e[i],enumerable:!(o=l(e,i))||o.enumerable});return t};var y=t=>a(n({},"__esModule",{value:!0}),t);var b={};f(b,{ViteMinifyPlugin:()=>m,default:()=>d});module.exports=y(b);var u=require("html-minifier-terser");function m(t){return{name:"vite-plugin-minify",apply:"build",transformIndexHtml:{order:"post",handler(e){return(0,u.minify)(e,{removeComments:!0,collapseWhitespace:!0,collapseBooleanAttributes:!0,removeAttributeQuotes:!1,removeEmptyAttributes:!0,minifyCSS:!0,minifyJS:!0,minifyURLs:!0,...t})}}}}var d=m;0&&(module.exports={ViteMinifyPlugin}); | ||
//# sourceMappingURL=index.cjs.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Plugin } from 'vite'; | ||
import { Options } from 'html-minifier-terser'; | ||
|
||
/** | ||
* @param options [html-minifier-terser options](https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference) | ||
* | ||
* @default | ||
* | ||
* { | ||
* removeComments: true, | ||
* collapseWhitespace: true, | ||
* collapseBooleanAttributes: true, | ||
* removeAttributeQuotes: false, | ||
* removeEmptyAttributes: true, | ||
* minifyCSS: true, | ||
* minifyJS: true, | ||
* minifyURLs: true, | ||
* ...options, // user provided options | ||
* } | ||
* | ||
* @returns vite-plugin-minify | ||
*/ | ||
declare function ViteMinifyPlugin(options?: Options): Plugin; | ||
|
||
export { ViteMinifyPlugin, ViteMinifyPlugin as default }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
import { Plugin } from 'vite'; | ||
import { Options } from 'html-minifier-terser'; | ||
|
||
/** | ||
* @param options [html-minifier-terser options](https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference) | ||
* | ||
* @default | ||
* | ||
* { | ||
* removeComments: true, | ||
* collapseWhitespace: true, | ||
* collapseBooleanAttributes: true, | ||
* removeAttributeQuotes: false, | ||
* removeEmptyAttributes: true, | ||
* minifyCSS: true, | ||
* minifyJS: true, | ||
* minifyURLs: true, | ||
* ...options, // user provided options | ||
* } | ||
* | ||
* @returns vite-plugin-minify | ||
*/ | ||
declare function ViteMinifyPlugin(options?: Options): Plugin; | ||
|
||
export { ViteMinifyPlugin, ViteMinifyPlugin as default }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.