tdewolff / minify

Go minifiers for web formats

Home Page:https://go.tacodewolff.nl/minify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html, script space minify

gyuber opened this issue · comments

I using mixed html, script text

<span>15      min</span>
<script>var v = "15      min"</script>

but html space working, script space not working
can you check if this is right?

let me share my test code
https://go.dev/play/p/OC3alMni7uR

Hi Hansung, yes this is correct. You specify a string literal with content 15 min, we can't remove the spaces like we do with HTML. Only in HTML are multiple spaces the equivalent as a single space. In JS strings this is not the case...

ok! i will find other way...