Closed ghost closed 1 year ago
I need to reevaluate the method SmartyURL employs for minifying HTML output. The current approach used for HTML minification in SmartyURL is discussed in detail on Stack Overflow at link.
The problem that i see is coming from the comment line // in javascript code
we must make sure from javascript codes rendered from codeigniter has no comment line // and use / comments / instead
or disable minifying html output by setting smartyurl.minifyHtmloutput
to false in .env
file.
When enable minify Html output using
smartyurl.minifyHtmloutput = true
will cause a javascript error in many js files newurl
The error:
if we check the file we can see all js code is on one line and commited like this