blob: f76f74cb040846c0864dd6f7db930dcdc2cf16b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { minify } from "html-minifier";
export const minifyHTML = (html) =>
minify(html, {
removeAttributeQuotes: true,
removeComments: true,
minifyJS: true,
minifyCSS: true,
collapseWhitespace: true,
collapseBooleanAttributes: true,
});
|