Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presets for different kinds of minifications #64

Closed
maltsev opened this issue Sep 12, 2018 · 1 comment
Closed

Presets for different kinds of minifications #64

maltsev opened this issue Sep 12, 2018 · 1 comment

Comments

@maltsev
Copy link
Member

maltsev commented Sep 12, 2018

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 AMP support #57)
  • email - for email templates

Check also how cssnano implemented presets.

@maltsev
Copy link
Member Author

maltsev commented Sep 14, 2018

Released: 0.2.0.

@maltsev maltsev closed this as completed Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant