We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I run with removeEmptyElements: true mode SVG tag and its child tags is cleared in index.html
removeEmptyElements: true
index.html
removeEmptyElements: false
<svg fill="none" height="39" viewBox="0 0 37 39" width="39" xmlns="http://www.w3.org/2000/svg" class="icon icon_solid icon_custom_blue" data-v-f07c3570> <circle cx="18.4101" cy="18.9882" fill="#707070" r="18.4101"></circle> </svg>
<svg fill="none" height="39" viewBox="0 0 37 38" width="39" xmlns="http://www.w3.org/2000/svg" class="icon icon_solid icon_custom_green" data-v-f07c3570> </svg>
The text was updated successfully, but these errors were encountered:
Test case:
Create index.html as
<html><body> <svg fill="none" height="39" viewBox="0 0 37 39" width="39" xmlns="http://www.w3.org/2000/svg" class="icon icon_solid icon_custom_blue" data-v-f07c3570> <circle cx="18.4101" cy="18.9882" fill="#707070" r="18.4101"></circle> </svg> </body></html>
html-minifier --remove-empty-elements index.html
<html><body> <svg fill="none" height="39" viewBox="0 0 37 39" width="39" xmlns="http://www.w3.org/2000/svg" class="icon icon_solid icon_custom_blue" data-v-f07c3570> </svg> </body></html>
Sorry, something went wrong.
This also removes attributes of a inside of an . So <svg><use href="some.svg"></use></svg> becomes <svg><use></use></svg>
<svg><use href="some.svg"></use></svg>
<svg><use></use></svg>
No branches or pull requests
When I run with
removeEmptyElements: true
mode SVG tag and its child tags is cleared inindex.html
removeEmptyElements: false
removeEmptyElements: true
The text was updated successfully, but these errors were encountered: