Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails and Javascript minifier and aggregator

I am starting a new rails project and is there any rails plug in I can use that will minify my javascript and combine it into 1 file?

I would imagine there might be a rake task for this.

What would be used for this in rails?

like image 886
dagda1 Avatar asked Dec 06 '25 18:12

dagda1


1 Answers

There are several actually:

  • AssetPackager
  • Jammit
  • BundleFu

I've only used asset packager, and its been nothing but a joy.

Also worth reading: http://github.com/blog/551-optimizing-asset-bundling-and-serving-with-rails

like image 134
Ben Crouse Avatar answered Dec 08 '25 12:12

Ben Crouse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!