4

I want to compress css files and javascript files in my project. Is there any plugin to do that? :">

3 Answers 3

4

I used bundle-fu, worked great.

  • compresses both css and javascript
  • has no external dependencies
  • is around for a long time (proven)
  • is simpler to use than Jammit (no config file).
  • more

Jammit is newer and fancyer.

  • it has better compression as it can use the latest compressor from google Closure Compiler considered having the best compression
  • is harder to use than bundle-fu (makes you define a config file)
  • has external dependencies (the java runtime to run the closure or yui compressors, written in java).
Sign up to request clarification or add additional context in comments.

1 Comment

Is there any plugins that I can compress my javascript and css files and then they're upload to S3 automatically ?
1

I use Jammit for this.

1 Comment

Another option is asset_packager. I used this over Jammit. Easy to set up, define assets in a yml file, couple of Raks tasks to do the work.
1

Rails 3.1 will do this automagically, as Ryan Bates shows in his Rails-3.1 Overview.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.