There is some inline js code with some comments in my html file(I know it's not good to write inline js code in the html, but here I have to do so), and I'm using html-minifier
to compress my whole html, but it can't remove the js comments. This will result in some errors when I use the template engine(e.g. art-template
). I set the minifyJS
to true
when using html-minifier
, but it seems no use.
What is the correct way to remove the inline js comments using html-minifier
? Or is there any other tool that can meet my requirements? Thanks.