Presets for different kinds of minifications
maltsev opened this issue · comments
Kirill Maltsev commented
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.
Kirill Maltsev commented
Released: 0.2.0.