posthtml / htmlnano

Modular HTML minifier, built on top of the PostHTML

Home Page:https://htmlnano.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Presets for different kinds of minifications

maltsev opened this issue · comments

Since htmlnano could be used for different kinds of pages and for different purposes it'll be nice to have presets. So instead of fine-tuning modules' options to be passed to htmlnano a developer could just use a suitable preset.

Here are some examples of presets that could be added:

  • safe - safe minifications without any side effects (basically the default options)
  • all - maximal minification
  • AMP - for AMP pages (see also #57)
  • email - for email templates

Check also how cssnano implemented presets.

Released: 0.2.0.