Skip to content

Treat SVG files as XML to allow minification #181

Open
@strongville

Description

@strongville

🚀 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.

Metadata

Metadata

Assignees

Labels

Type: EnhancementSuggest an improvement for an existing feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions