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

Treat SVG files as XML to allow minification #181

Open
strongville opened this issue Mar 7, 2024 · 1 comment
Open

Treat SVG files as XML to allow minification #181

strongville opened this issue Mar 7, 2024 · 1 comment
Assignees
Labels
Type: Enhancement Suggest an improvement for an existing feature.

Comments

@strongville
Copy link

🚀 Enhancement Request

Is your enhancement request related to a problem? Please describe.

  • When selecting "Minify the selected document and preserve the original" on an SVG file, the plugin indicates this error: "⛔ We can not format this file type yet (svg), use a valid one".
  • As SVG file format is internally an XML, this should be supported out-of-the-box.

Describe the solution you'd like

  • When selecting "Minify the selected document and preserve the original" on an SVG file, create a -min file with extension SVG.

Describe alternatives you've considered

  • Renaming the SVG files to include extension XML instead makes the minifier work.
  • However, the extension assigned to the -min file is HTML, something that probably happens with all XML files.
@strongville strongville added the Type: Enhancement Suggest an improvement for an existing feature. label Mar 7, 2024
Copy link

welcome bot commented Mar 7, 2024

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Suggest an improvement for an existing feature.
Projects
None yet
Development

No branches or pull requests

2 participants