Javascript Minify : problem with comments
WilliamVercken opened this issue · 1 comments
WilliamVercken commented
Hi ! I found an issue with the minify command when there is a comment at the bottom of js files.
/media/js/test1.js
//TEST1
alert('TEST 1');
//END TEST1
/media/js/test2.js
//TEST2
alert('TEST 2');
//END TEST2
Combine without Minify : OK
<script type="text/javascript" src="/munee.php?files=/media/js/test1.js,/media/js/test2.js" defer></script>
//TEST1
alert('TEST 1');
//END TEST1
//TEST2
alert('TEST 2');
//END TEST2
Combine & Minify : NOT OK
<script type="text/javascript" src="/munee.php?files=/media/js/test1.js,/media/js/test2.js&minify=true" defer></script>
alert('TEST 1');END TEST1
alert('TEST 2');END TEST2
meenie commented
I just tried this and had no issues. I've recently updated the jsmin library to it's latest version. It could have been an issue in the previous version. Thanks for the report!