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
  • 11,695
  • 42
  • 119
  • 194

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
  • 16,677
  • 4
  • 43
  • 59