Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Real good Perl module for minify JS files

by Doctrin (Beadle)
on Jul 05, 2013 at 15:15 UTC ( #1042733=perlquestion: print w/replies, xml ) Need Help??
Doctrin has asked for the wisdom of the Perl Monks concerning the following question:

Hello dear Monks. Is there a module, except of JavaScript::Packer, to minify js files? JavaScript::Packer does not give proper minification for the following js code note: no semicolons at the end
if (!clickedElement) if (!clickedElement) return 1 if (clickedElement.display == dspl){
transforming it to
if(!clickedElement) if(!clicke +dElement)return 1 if(clickedElement.display == dspl){...
which is wrong. Is there other modules? Thanks in advance.

Replies are listed 'Best First'.
Re: Real good Perl module for minify JS files
by jeffa (Bishop) on Jul 05, 2013 at 16:37 UTC
      Thanks. Compression is not so good, as by Packer, but, resultive code WORKS at least ;)
      i find a free online javascript minifier to compress your js code, so it will reduce the size of web page.
Re: Real good Perl module for minify JS files
by stonecolddevin (Vicar) on Dec 11, 2015 at 19:54 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1042733]
Front-paged by Arunbear
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2016-10-26 19:37 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (346 votes). Check out past polls.