MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / minifyHtml

Function minifyHtml

lib/html.js:7–18  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

5const { html: html_beautify } = beautify
6
7async 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
20const TRASH_HTML_CLASSES = /^(text-|color-|flex-|float-|v-|ember-|d-|border-)/
21

Callers 3

setHtmlContextMethod · 0.90
html_test.jsFile · 0.90
formatHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected