Random bits ‘n’ pieces

John Reilly’s Blog

« PreviousNext »

Update to JSMin.java

21 August 2007

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.

Posted in javascript | Trackback | del.icio.us | Top Of Page

    4 Responses to “Update to JSMin.java”

  1. Adnan Memon Says:

    Can you list the changes done recently .. or is there any other location where I can see the changelog?

  2. John Says:

    Of course. There is a diff at http://www.inconspicuous.org/projects/jsmin/jsmin20070820.patch

  3. Adnan Memon Says:

    Thanks John.

  4. Richard Davies Says:

    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!

Leave a Reply