0

I have the following script tag in my jade file:

!!!5
html(lang="en")
   head
   body
     script(type='text/javascript')
       function something() {
         alert("test")
       }

How can I minimized by using uglifyjs or any existing minification?

Erik
  • 14,060
  • 49
  • 132
  • 218

1 Answers1

0

You should be able to do it using a jade filter.

Here's a module that looks like it's implimented one: https://npmjs.org/package/jade-filter

generalhenry
  • 17,227
  • 4
  • 48
  • 63