Closed sankalpsans closed 8 years ago
Support for removal of JavaScript comments, since many inline script snippets are often present in templates. Without this a section like
<script> console.log(1); //console.log(2); console.log(3); </script>
changes to <script>console.log(1);//console.log(2);console.log(3);</script> thus effectively commenting out the third console.log() As a solution, I have removed the commented part in output file, which also helps in the cause of minification.
<script>console.log(1);//console.log(2);console.log(3);</script>
console.log()
thanks @sankalpsans very nice feature :)
Support for removal of JavaScript comments, since many inline script snippets are often present in templates. Without this a section like
changes to
<script>console.log(1);//console.log(2);console.log(3);</script>
thus effectively commenting out the thirdconsole.log()
As a solution, I have removed the commented part in output file, which also helps in the cause of minification.