Update to JSMin.java
21 August 2007For anyone using JSMin.java, I’ve made a small update to JSMin.java to match with the latest jsmin.c. Thanks to Manuel Dominguez Sarmiento for pointing out the mismatch between the two.
For anyone using JSMin.java, I’ve made a small update to JSMin.java to match with the latest jsmin.c. Thanks to Manuel Dominguez Sarmiento for pointing out the mismatch between the two.
4 Responses to “Update to JSMin.java”
August 30th, 2007 at 9:43 pm
Can you list the changes done recently .. or is there any other location where I can see the changelog?
August 30th, 2007 at 9:54 pm
Of course. There is a diff at http://www.inconspicuous.org/projects/jsmin/jsmin20070820.patch
August 30th, 2007 at 11:57 pm
Thanks John.
February 12th, 2009 at 3:19 pm
One problem I’ve encountered with JSmin is that it strips Microsoft’s conditional compilation comments. I found a JavaScript version of JSmin that’s been modified to leave conditionial comments alone:
http://tanny.ica.com/ICA/TKO/tkoblog.nsf/dx/jsmin-and-javascript-conditional-comments
I tried porting the change over to your library, but I don’t know much about Java and couldn’t seem to get it to work. My code is available at the link below, with the changed lines highlighted. (The meat of the fix is around line 143.)
http://pastebin.com/f4286507e
Could you please take a look at this and see if you can get it to work? I’d really appreciate it. Thanks!