(html)
| 5 | const { html: html_beautify } = beautify |
| 6 | |
| 7 | async function minifyHtml(html) { |
| 8 | return minify(html, { |
| 9 | collapseWhitespace: true, |
| 10 | removeComments: true, |
| 11 | removeEmptyAttributes: true, |
| 12 | removeRedundantAttributes: true, |
| 13 | removeScriptTypeAttributes: true, |
| 14 | removeStyleLinkTypeAttributes: true, |
| 15 | collapseBooleanAttributes: true, |
| 16 | useShortDoctype: true, |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | const TRASH_HTML_CLASSES = /^(text-|color-|flex-|float-|v-|ember-|d-|border-)/ |
| 21 |
no outgoing calls
no test coverage detected