htmlnano
Version:
Modular HTML minifier, built on top of the PostHTML
21 lines (19 loc) • 467 B
JavaScript
import safePreset from './safe.mjs';
/**
* Maximal minification (might break some pages)
*/
export default { ...safePreset,
collapseWhitespace: 'all',
removeComments: 'all',
removeAttributeQuotes: true,
removeRedundantAttributes: true,
mergeScripts: true,
mergeStyles: true,
removeUnusedCss: {},
minifyCss: {
preset: 'default',
},
minifySvg: {},
minifyConditionalComments: true,
removeOptionalTags: true,
};