Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Jitendra Vyas
Jitendra Vyas
2,349 Points

Rails asset pipeline Vs Grunt JS

I need to work in Ruby on rails project as a front-end developer and I have never worked with Ruby before. I want to automate many things in my project like

Sass Compass output to css, Linting, Minification, uglification and concatenation of my JS and CSS, Image optimization, Font/SVG icon generation, SVG optimization, CSS Sprite generation and many more things I want to know that Is it possible to do similar (above mentioned) things with Rails Asset pipeline too? or I'm right that Grunt.JS is much powerful now and will be more in future, than Asset pipeline.

Can we use both Asset pipeline and Grunt in same project?

And is there any cons and pros for RoR project to replace asset pipeline with Grunt?

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Jitendra Vyas the Rails asset pipeline does do some of the things you asked for: linting, minification, uglification, and concatenation. You can use grunt for the other things if you really want to but you may want to also investigate plugins for this as well. It's usually the easiest to stay within rails for big architecture parts like that.

All of this stuff is usually done when you deploy your app for production. You could always use grunt if you want to -- I've seen reports of some people doing that. Check out this project for more background on it.