Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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) clickedElement=document.all.nodeId.style if (!clickedElement) return 1 if (clickedElement.display == dspl){
transforming it to
if(!clickedElement)clickedElement=document.all.nodeId.style if(!clicke +dElement)return 1 if(clickedElement.display == dspl){...
which is wrong. Is there other modules? Thanks in advance.

Comment on Real good Perl module for minify JS files
Select or Download Code
Re: Real good Perl module for minify JS files
by jeffa (Chancellor) on Jul 05, 2013 at 16:37 UTC
      Thanks. Compression is not so good, as by Packer, but, resultive code WORKS at least ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-11-26 23:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (177 votes), past polls