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

idea: minimize html in build mode #1060

Closed
isaacl opened this issue Nov 11, 2020 · 1 comment
Closed

idea: minimize html in build mode #1060

isaacl opened this issue Nov 11, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@isaacl
Copy link
Contributor

isaacl commented Nov 11, 2020

Is your feature request related to a problem? Please describe.
Should vite build minify generated html files? Downsides:

  • they're harder to read, though devtools can pretty print.
  • adds time to the build

Upside:

  • potentially loads faster

Describe the solution you'd like
pass html through something like html-minifier or roll something simple from scratch

Additional context
Seems logical given that js and css are minimized in build mode.

@aleclarson aleclarson added the enhancement New feature or request label Nov 11, 2020
@anncwb
Copy link
Contributor

anncwb commented Nov 12, 2020

@isaacl You can try this simple plugin

https://github.com/anncwb/vite-plugin-html

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants