Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Anybody using less and sass together?


I am, sort of.

On Rails 3.1 I have these in the Gemfile:

  gem 'sass-rails', "~> 3.1.0.rc"
  gem "compass", ">= 0.12.alpha.2"
  gem "less-rails", :git => 'https://github.com/christiannelson/less-rails.git'
I'm in the process of transitioning from sass to less (mainly because I'm tired of compass and because bootstrap comes as .less). The above configuration happily compiles sass/less alongside for me.

It wasn't smooth sailing to get there, though, as you can tell from the pinned versions. The above will probably not work on Rails 3.2 or 3.0, and might even break with the next minor upgrade of 3.1. As it stands the asset-pipeline and supporting gems have been very fragile for me...


Yes, I am.

I use the 'less-rails-bootstrap' gem and then use less for anytime I need to customize bootstrap.

For everything else, I use sass.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: