serg472 / htmlcompressor

HTML Compressor and Minifier, can be used standalone and as a Java library
Apache License 2.0
40 stars 15 forks source link

Remove comment is not working when we use #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create one js file having comment(//alert('hy yatin)) in one js function 
2.java -jar htmlcompressor.jar -o /path/compressed/test.js 
/path/original/test1.js
3.Check the generated test1.js

What is the expected output? What do you see instead?
Answer:test1.js file is compressed properly ,but the //alert('hy yatin) is not 
removed in that compressed file.And i wan to expect that file is compressed 
properly as well as remove that comment also.

What version of the product are you using? On what operating system?
Answer:htmlcompressor-1.5.3.jar ,Windows xp

Original issue reported on code.google.com by baraiya....@gmail.com on 4 Sep 2012 at 1:36

GoogleCodeExporter commented 8 years ago
Htmlcompressor uses yuicompressor for optionally compressing javascript inside 
<script> tags. If you just want to comress plain js files then use 
yuicompressor directly.

Original comment by serg472@gmail.com on 10 Mar 2013 at 7:15