UNPKG

htmlnano

Version:

Modular HTML minifier, built on top of the PostHTML

36 lines (33 loc) 802 B
import safePreset from './safe.mjs'; /** * Maximal minification (might break some pages) */ var max = { ...safePreset, removeRedundantAttributes: true, removeXmlLeftovers: true, sortAttributes: true, collapseWhitespace: 'all', minifyCharacterReferences: { decodeAll: true }, removeComments: 'all', removeEmptyElements: true, minifyConditionalComments: true, removeOptionalTags: true, normalizeDoctype: true, removeAttributeQuotes: true, minifyAttributes: { metaContent: true, redundantWhitespaces: 'aggressive' }, mergeScripts: true, mergeStyles: true, removeUnusedCss: { tool: 'purgeCSS' }, minifyCss: { preset: 'default' }, minifySvg: {} }; export { max as default };