(html: string, opts?: any)
| 23 | } |
| 24 | |
| 25 | export const minifyHTML = (html: string, opts?: any) => { |
| 26 | return minify(html, { |
| 27 | collapseBooleanAttributes: true, |
| 28 | collapseWhitespace: true, |
| 29 | collapseInlineTagWhitespace: true, |
| 30 | continueOnParseError: true, |
| 31 | removeComments: true, |
| 32 | removeEmptyAttributes: true, |
| 33 | removeEmptyElements: true, |
| 34 | removeOptionalTags: true, |
| 35 | removeRedundantAttributes: true, |
| 36 | removeScriptTypeAttributes: true, |
| 37 | removeStyleLinkTypeAttributes: true, |
| 38 | ...opts |
| 39 | }) |
| 40 | } |
no outgoing calls
no test coverage detected