cjohansen / juicer

A command line tool for JavaScript and CSS developers
630 stars 47 forks source link

Merging but not minifying JS #31

Closed mattfordham closed 13 years ago

mattfordham commented 13 years ago

After running the following command (-s because the jsLint settings don't seem to like Coffeescript generated JS), my files get merge but not minified. I get a 'Unable to access jarfile' message. Maybe that has something to do with it? YUI Compressor is installed, as directed by the instructions.

juicer merge -s main.js

Thanks for any help.

cjohansen commented 13 years ago

What is the path to the YUI compressor file? Are you by chance on Windows?

mattfordham commented 13 years ago

I'm on OSX. The YUI compressor is in ~/.juicer/lib/yui_compressor.

cjohansen commented 13 years ago

And you verified that the file was there? YUI has been moving it around lately, maybe your install failed? I just pushed a new version. Try removing ~/.juicer and then gem update juicer and then juicer install yui_compressor.

mattfordham commented 13 years ago

That fixed it, thanks!

cjohansen commented 13 years ago

Great!

AlexSkrypnyk commented 12 years ago

Actually, there is another question here: how to deliberately merge and not minify (aka aggregate)? UPDATE: Just found an answer in issue #28 To disable minification and use combining/aggregation of files use--minifyer ""