Josee9988 / MinifyAll

A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
https://minifyall.jgracia.es/
GNU General Public License v3.0
73 stars 13 forks source link

XML Minify #119

Closed Runeloon closed 3 years ago

Runeloon commented 3 years ago

πŸš€ Feature Request

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

Dealing with large XML blobs that I'm inserting into SQL statements, prefer to keep to a single line so they don't distract from the rest of my code. Have been using this tool for JSON blobs and it's worked perfectly.

*


Describe the solution you'd like

Noticed switching the language mode to HTML and then minifying appeared to work perfectly. Hopefully that means you can copy whatever logic is being used with little difficulty?


Describe alternatives you've considered

There are online XML minifyers, but that is subject to copy-paste limits, and I'd just prefer my editor be able to do it.


welcome[bot] commented 3 years ago

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!

Josee9988 commented 3 years ago

Hi, so does the minifier minify your XML code right when using it as HTML?

Because I could just add XML as an HTML minimisation

Runeloon commented 3 years ago

After a bit of further testing, I think the HTML minifier will work perfectly for the XML.

I will note that CDATA blocks get a bit screwed up, with some newlines being removed, while others aren't. CDATA is an odd exception, as it can kind of contain anything, and maybe shouldn't be minified at all? Then again, maybe just removing all linebreaks and ensuring everything is single spaced would be fine. This won't impact me since none of the XML I'll be using uses CDATA.

Josee9988 commented 3 years ago

You can now download the latest minifyall version (2.9.0) and check if it works for you ;))

Runeloon commented 3 years ago

Downloaded, works perfectly! Thanks for the change :D