html-minifier
Version:
Highly effective, super-configurable, well-tested web page minifier
428 lines • 12.8 kB
TypeScript
/**
* Regex patterns, element sets, and default configuration
*/
declare const RE_WS_START: RegExp;
declare const RE_WS_END: RegExp;
declare const RE_WS_ONLY: RegExp;
declare const RE_WS_NBSP_END: RegExp;
declare const RE_ALL_WS_NBSP: RegExp;
declare const RE_NBSP_LEADING_GROUP: RegExp;
declare const RE_NBSP_LEAD_GROUP: RegExp;
declare const RE_NBSP_TRAILING_GROUP: RegExp;
declare const RE_NBSP_TRAILING_STRIP: RegExp;
declare const RE_EVENT_ATTR_DEFAULT: RegExp;
declare const RE_CAN_REMOVE_ATTR_QUOTES: RegExp;
declare const RE_TRAILING_SEMICOLON: RegExp;
declare const RE_CR: RegExp;
declare const RE_LINE_BREAK_CR: RegExp;
declare const RE_LEGACY_ENTITIES: RegExp;
declare const RE_AMP_REFERENCE_ATTR: RegExp;
declare const RE_ESCAPE_LT: RegExp;
declare const RE_BASE_ELEMENT: RegExp;
declare const RE_XML_ESCAPE_TEXT: RegExp;
declare const RE_XML_ESCAPE_ATTR: RegExp;
declare const RE_ESCAPE_LT_RAW_TEXT: Record<string, RegExp>;
declare const RE_HTML_ENCODING: RegExp;
declare const RE_DOCTYPE: RegExp;
declare const RE_DOCTYPE_SEGMENT: RegExp;
declare const RE_ATTR_WS_CHECK: RegExp;
declare const RE_ATTR_WS_COLLAPSE: RegExp;
declare const RE_TABS_ONLY: RegExp;
declare const RE_WS_CHAR: RegExp;
declare const RE_STYLE_ELEMENT: RegExp;
declare const RE_STYLE_TAG: RegExp;
declare const RE_ENDS_COLLAPSIBLE: RegExp;
declare const RE_ATTR_SELECTOR: RegExp;
declare const RE_EMPTY_ATTRIBUTE: RegExp;
declare const inlineElementsToKeepWhitespaceAround: Set<string>;
declare const inlineElementsToKeepWhitespaceWithin: Set<string>;
declare const inlineElementsToKeepWhitespaceBetween: Set<string>;
declare const inlineElementsTransparent: Set<string>;
declare const inlineElementsTransparentVoid: Set<string>;
declare const processingInstructionTag = "?";
declare const inlineElementsToKeepWhitespace: Set<string>;
declare const formattingElements: Set<string>;
/** @param {Iterable<string>} names */
declare const toEndTags: (names: Iterable<string>) => Set<string>;
declare const formControlElementsEither: Set<string>;
declare const inlineElementsToKeepWhitespaceBetweenEnd: Set<string>;
declare const inlineElementsTransparentAfter: Set<string>;
declare const generalDefaults: {
autocorrect: string;
fetchpriority: string;
loading: string;
popovertargetaction: string;
};
declare const tagDefaults: {
area: {
shape: string;
};
button: {
type: string;
};
col: {
span: string;
};
colgroup: {
span: string;
};
form: {
autocomplete: string;
enctype: string;
method: string;
};
html: {
dir: string;
};
iframe: {
scrolling: string;
};
img: {
decoding: string;
};
input: {
colorspace: string;
type: string;
};
link: {
media: string;
};
marquee: {
behavior: string;
direction: string;
};
meta: {
media: string;
};
meter: {
max: string;
min: string;
};
ol: {
start: string;
type: string;
};
progress: {
max: string;
};
source: {
media: string;
};
style: {
media: string;
};
td: {
colspan: string;
rowspan: string;
};
textarea: {
cols: string;
rows: string;
wrap: string;
};
th: {
colspan: string;
rowspan: string;
scope: string;
};
track: {
kind: string;
};
};
declare const integrationPointsForeign: {
svg: Set<string>;
math: Set<string>;
};
declare const metaHttpEquivNoEffect: Set<string>;
declare const metaNamesNoEffect: Set<string>;
declare const targetSelfElements: Set<string>;
declare const tagDefaultsSVG: {
animatemotion: {
rotate: string;
};
animatetransform: {
type: string;
};
circle: {
cx: string;
cy: string;
};
clippath: {
clippathunits: string;
};
ellipse: {
cx: string;
cy: string;
};
feblend: {
mode: string;
};
fecolormatrix: {
type: string;
};
fecomposite: {
k1: string;
k2: string;
k3: string;
k4: string;
operator: string;
};
feconvolvematrix: {
bias: string;
edgemode: string;
order: string;
preservealpha: string;
};
fediffuselighting: {
diffuseconstant: string;
surfacescale: string;
};
fedisplacementmap: {
scale: string;
xchannelselector: string;
ychannelselector: string;
};
fedistantlight: {
azimuth: string;
elevation: string;
};
fedropshadow: {
dx: string;
dy: string;
stddeviation: string;
};
fefunca: {
amplitude: string;
exponent: string;
intercept: string;
offset: string;
slope: string;
type: string;
};
fefuncb: {
amplitude: string;
exponent: string;
intercept: string;
offset: string;
slope: string;
type: string;
};
fefuncg: {
amplitude: string;
exponent: string;
intercept: string;
offset: string;
slope: string;
type: string;
};
fefuncr: {
amplitude: string;
exponent: string;
intercept: string;
offset: string;
slope: string;
type: string;
};
fegaussianblur: {
stddeviation: string;
};
feimage: {
preserveaspectratio: string;
};
femorphology: {
operator: string;
radius: string;
};
feoffset: {
dx: string;
dy: string;
};
fepointlight: {
x: string;
y: string;
z: string;
};
fespecularlighting: {
specularconstant: string;
specularexponent: string;
surfacescale: string;
};
fespotlight: {
pointsatx: string;
pointsaty: string;
pointsatz: string;
specularexponent: string;
x: string;
y: string;
z: string;
};
feturbulence: {
basefrequency: string;
numoctaves: string;
seed: string;
stitchtiles: string;
type: string;
};
filter: {
filterunits: string;
height: string;
primitiveunits: string;
width: string;
x: string;
y: string;
};
foreignobject: {
x: string;
y: string;
};
image: {
preserveaspectratio: string;
x: string;
y: string;
};
line: {
x1: string;
x2: string;
y1: string;
y2: string;
};
lineargradient: {
gradientunits: string;
spreadmethod: string;
x1: string[];
x2: string;
y1: string[];
y2: string[];
};
marker: {
markerheight: string;
markerunits: string;
markerwidth: string;
orient: string;
preserveaspectratio: string;
refx: string;
refy: string;
};
mask: {
height: string;
maskcontentunits: string;
maskunits: string;
width: string;
x: string;
y: string;
};
pattern: {
height: string;
patterncontentunits: string;
patternunits: string;
preserveaspectratio: string;
width: string;
x: string;
y: string;
};
radialgradient: {
cx: string;
cy: string;
fr: string[];
gradientunits: string;
r: string;
spreadmethod: string;
};
rect: {
x: string;
y: string;
};
stop: {
offset: string;
};
svg: {
preserveaspectratio: string;
version: string;
x: string;
y: string;
};
symbol: {
preserveaspectratio: string;
};
text: {
lengthadjust: string;
x: string;
y: string;
};
textpath: {
lengthadjust: string;
method: string;
spacing: string;
startoffset: string;
};
tspan: {
lengthadjust: string;
};
use: {
x: string;
y: string;
};
view: {
preserveaspectratio: string;
};
};
declare const svgElementsInheritingByReference: Set<string>;
declare const namespaceHTML = "http://www.w3.org/1999/xhtml";
declare const namespaceSVG = "http://www.w3.org/2000/svg";
declare const namespaceMathML = "http://www.w3.org/1998/Math/MathML";
declare const namespaceXLink = "http://www.w3.org/1999/xlink";
declare const executableScriptsMimetypes: Set<string>;
declare const keepScriptsMimetypes: Set<string>;
declare const isSimpleBoolean: Set<string>;
declare const isBooleanValue: Set<string>;
declare const collapsibleValues: Map<string, Set<string>>;
declare const srcsetElements: Set<string>;
declare const jsonScriptTypes: Set<string>;
declare const optionalStartTags: Set<string>;
declare const optionalEndTags: Set<string>;
declare const headerElements: Set<string>;
declare const descriptionElements: Set<string>;
declare const pBlockElements: Set<string>;
declare const pClosingParents: Set<string>;
declare const rubyEndTagOmission: Set<string>;
declare const rubyRtcEndTagOmission: Set<string>;
declare const optionElements: Set<string>;
declare const tableContentElements: Set<string>;
declare const tableSectionElements: Set<string>;
declare const cellElements: Set<string>;
declare const topLevelElements: Set<string>;
declare const compactElements: Set<string>;
declare const looseElements: Set<string>;
declare const trailingElements: Set<string>;
declare const specialOptionalEndTags: Set<string>;
declare const htmlElements: Set<string>;
declare const quirksPublicIds: Set<string>;
declare const quirksSystemIds: Set<string>;
declare const quirksPublicIdPrefixes: string[];
declare const quirksPublicIdPrefixesNoSystemId: string[];
declare const specialContentElements: Set<string>;
declare const genericRawTextElements: Set<string>;
declare const endlessRawTextElements: Set<string>;
declare const escapableRawTextElements: Set<string>;
declare const rawTextElements: Set<string>;
declare const MISSING_DEPENDENCY = "HM_MISSING_DEPENDENCY";
declare const svgoPluginsInline: {
name: string;
params: {
overrides: {
cleanupIds: boolean;
inlineStyles: boolean;
minifyStyles: {
usage: boolean;
};
removeEmptyAttrs: boolean;
removeHiddenElems: boolean;
removeUnknownsAndDefaults: {
keepRoleAttr: boolean;
};
};
};
}[];
declare const namesForeignMixedCase: Map<string, string>;
export { RE_WS_START, RE_WS_END, RE_WS_ONLY, RE_WS_NBSP_END, RE_ALL_WS_NBSP, RE_NBSP_LEADING_GROUP, RE_NBSP_LEAD_GROUP, RE_NBSP_TRAILING_GROUP, RE_NBSP_TRAILING_STRIP, RE_EVENT_ATTR_DEFAULT, RE_CAN_REMOVE_ATTR_QUOTES, RE_TRAILING_SEMICOLON, RE_AMP_REFERENCE_ATTR, RE_CR, RE_LINE_BREAK_CR, RE_LEGACY_ENTITIES, RE_ESCAPE_LT, RE_ATTR_SELECTOR, RE_ENDS_COLLAPSIBLE, RE_BASE_ELEMENT, RE_ESCAPE_LT_RAW_TEXT, RE_XML_ESCAPE_TEXT, RE_XML_ESCAPE_ATTR, RE_HTML_ENCODING, RE_DOCTYPE, RE_DOCTYPE_SEGMENT, RE_ATTR_WS_CHECK, RE_ATTR_WS_COLLAPSE, RE_TABS_ONLY, RE_WS_CHAR, RE_STYLE_ELEMENT, RE_STYLE_TAG, RE_EMPTY_ATTRIBUTE, formattingElements, inlineElementsToKeepWhitespaceAround, inlineElementsToKeepWhitespaceWithin, inlineElementsToKeepWhitespaceBetween, inlineElementsToKeepWhitespaceBetweenEnd, inlineElementsTransparent, inlineElementsTransparentAfter, inlineElementsTransparentVoid, inlineElementsToKeepWhitespace, processingInstructionTag, formControlElementsEither, toEndTags, generalDefaults, tagDefaults, metaHttpEquivNoEffect, metaNamesNoEffect, targetSelfElements, integrationPointsForeign, tagDefaultsSVG, svgElementsInheritingByReference, namespaceHTML, namespaceSVG, namespaceMathML, namespaceXLink, executableScriptsMimetypes, keepScriptsMimetypes, jsonScriptTypes, isSimpleBoolean, isBooleanValue, collapsibleValues, srcsetElements, MISSING_DEPENDENCY, namesForeignMixedCase, svgoPluginsInline, optionalStartTags, optionalEndTags, headerElements, descriptionElements, pBlockElements, pClosingParents, rubyEndTagOmission, rubyRtcEndTagOmission, optionElements, tableContentElements, tableSectionElements, cellElements, topLevelElements, compactElements, looseElements, trailingElements, specialOptionalEndTags, htmlElements, quirksPublicIds, quirksSystemIds, quirksPublicIdPrefixes, quirksPublicIdPrefixesNoSystemId, specialContentElements, genericRawTextElements, endlessRawTextElements, escapableRawTextElements, rawTextElements };
//# sourceMappingURL=constants.d.ts.map