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