You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uses [html-minifier-terser](https://www.npmjs.com/package/html-minifier-terser) to minify HTML and [clean-css](https://www.npmjs.com/package/clean-css) to minify CSS.
5
+
Uses [html-minifier-next](https://www.npmjs.com/package/html-minifier-next) to minify HTML and [lightningcss](https://lightningcss.dev/) to minify CSS.
6
6
7
7
## Installation
8
8
@@ -60,22 +60,32 @@ console.log(map);
60
60
## Options
61
61
62
62
```ts
63
-
exportinterfaceOptions {
63
+
exporttypeOptions= {
64
+
/** Source filename used for parsing and source map generation. */
65
+
fileName?:string;
66
+
64
67
/**
65
-
* Minify HTML options, see https://github.com/terser/html-minifier-terser#options-quick-reference
66
-
* @default.//src/defaultOptions.ts
68
+
* Options passed to html-minifier-next, or a custom HTML minifier. Set to false to skip HTML and SVG templates.
67
69
*/
68
-
minifyOptions?:Partial<minify.Options>;
70
+
html?:
71
+
|false
72
+
|Partial<HTMLMinifyOptions>
73
+
| ((html:string) =>string|Promise<string>);
69
74
70
75
/**
71
-
* Override the default strategy for how to minify HTML.
This package was originally a fork of [minify-html-literals](https://github.com/asyncLiz/minify-html-literals) by [Elizabeth Mitchell](https://github.com/asyncLiz)
0 commit comments