html-minifier icon indicating copy to clipboard operation
html-minifier copied to clipboard

How do i minify javascript in custom tag?

Open ghost opened this issue 6 years ago • 1 comments

<wxs module="util">
      console.log(1 < 2)
</wxs>

say i have the code above, how do i parse javascript inside a wxs tag? or let's say how do i avoid the character '<' inside the wxs tag from being treated as a started tag?

ghost avatar Oct 08 '19 08:10 ghost

AFAIK this wasn’t and isn’t possible yet. If there’s more demand for this, this could be considered as a feature in HTML Minifier Next (maintained fork).

j9t avatar Sep 13 '25 11:09 j9t