SassC::Rails
We all love working with Sass, but compilation can take quite a long time for larger codebases. This gem integrates the C implementation of Sass, libsass, into the asset pipeline.
In one larger project, this made compilation 4x faster:
# Using sassc-rails
[1] pry(main)> Benchmark.bm { |bm| bm.report { Rails.application.assets["application.css"] } }
user system total real
1.720000 0.170000 1.890000 ( 1.936867)
# Using sass-rails
[1] pry(main)> Benchmark.bm { |bm| bm.report { Rails.application.assets["application.css"] } }
user system total real
7.820000 0.250000 8.070000 ( 8.106347)
This should essentially be a drop in alternative to sass-rails.
Note: This is a new project, please report any issues you come across!
Installation
Add this line to your application's Gemfile:
gem 'sassc-rails'
And then execute:
$ bundle
Contributing
- Fork it ( https://github.com/[my-github-username]/sassc-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Add Tests
- Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Credits
This gem is based on sass-rails, and is maintained by Ryan Boland.