https://github.com/sass/sassc-rails
Integrate SassC-Ruby with Rails!
https://github.com/sass/sassc-rails
Keywords from Contributors
activerecord activejob mvc rubygem rack rubocop ruby-gem code-formatter static-code-analysis nokogiri
Last synced: about 22 hours ago
JSON representation
Repository metadata
Integrate SassC-Ruby with Rails!
- Host: GitHub
- URL: https://github.com/sass/sassc-rails
- Owner: sass
- License: mit
- Archived: true
- Created: 2015-03-04T03:27:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2025-10-24T23:16:11.000Z (4 months ago)
- Last Synced: 2026-02-25T19:42:26.329Z (6 days ago)
- Language: HTML
- Homepage:
- Size: 207 KB
- Stars: 705
- Watchers: 17
- Forks: 106
- Open Issues: 62
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
README.md
SassC::Rails

LibSass has reached its end of life.
It will no longer receive updates of any kind. Users should migrate to
Dart Sass at their earliest convenience. There is a
Ruby plugin using Embedded
Dart Sass available now.
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.
Inline Source Maps
With SassC-Rails, it's also extremely easy to turn on inline source maps. Simply
add the following configuration to your development.rb file:
# config/environments/development.rb
config.sass.inline_source_maps = true
After adding this config line, you may need to clear your assets cache
(rm -r tmp/cache/assets), stop spring, and restart your rails server. You may
also wish to disable line comments (config.sass.line_comments = false).
Note, as indicated, these source maps are inline. They will not generate additional
files or anything like that. Instead, they will be appended to the compiled
application.css file.
LibSass Compatibility With Ruby Sass
For a look at the compatibility between Ruby Sass and LibSass, check this
compatibility chart out.
Installation
Add this line to your application's Gemfile:
gem 'sassc-rails'
And then execute:
$ bundle
Common Issues
Deployment to Heroku
Due to LibSass compilation requirements, you must upgrade to the
Heroku Cedar-14 Stack
in order to successfully install this gem.
Upgrading to Cedar-14 is usually a painless process.
Installing alongside a gem that depends on Sass-Rails
Libraries explicitly depending on Sass-Rails, such as ActiveAdmin, can cause
conflicts with installation of SassC-Rails. While we have no built-in solution
for this, please check out this issue
for a workaround.
Credits
This gem is based on sass-rails, and
is maintained by Ryan Boland and awesome contributors.
Changelog
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.3.0
- 1.2.1
- Bump SassC (and thus LibSass) version
- 1.2.0
- 1.1.0
- Moved under the official sass organization!
- Source line comments (
app.config.sass.line_comments) - Prevent sass-rails railtie from running
- CSS compression may be disabled in test mode. Special thanks to this Sass-Rails PR for inspiration.
- 1.0.0
- Initial Release
- Add support for inline source maps
- Support compression in the way that Sass-Rails handles it
Contributing
- Fork it ( https://github.com/sass/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
Owner metadata
- Name: Sass
- Login: sass
- Email:
- Kind: organization
- Description:
- Website: https://sass-lang.com
- Location:
- Twitter: SassCSS
- Company:
- Icon url: https://avatars.githubusercontent.com/u/317889?v=4
- Repositories: 28
- Last ynced at: 2024-10-29T23:35:42.738Z
- Profile URL: https://github.com/sass
GitHub Events
Total
- Pull request event: 3
- Fork event: 3
- Watch event: 6
- Issue comment event: 18
Last Year
- Fork event: 1
- Watch event: 3
- Issue comment event: 9
Committers metadata
Last synced: 2 days ago
Total Commits: 129
Total Committers: 29
Avg Commits per committer: 4.448
Development Distribution Score (DDS): 0.349
Commits in past year: 1
Committers in past year: 1
Avg Commits per committer in past year: 1.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Ryan Boland | b****m@g****m | 84 |
| schneems | r****n@g****m | 6 |
| Rafael Mendonça França | r****a@g****m | 4 |
| Edward Ocampo-Gooding | e****d@e****t | 3 |
| Javier Julio | j****l@g****m | 3 |
| John Hawthorn | j****n@g****m | 3 |
| mintcore | j****n@m****e | 3 |
| Aqeel Nazeer | a****n@g****m | 2 |
| Edward Ocampo-Gooding | h****o@e****o | 1 |
| William Beene | b****r@t****m | 1 |
| brainopia | b****a@e****m | 1 |
| Anthony Sottile | a****e@u****u | 1 |
| Corey Csuhta | c****a | 1 |
| Gleb Mazovetskiy | g****b@g****m | 1 |
| Henrik Nyh | h****k@n****e | 1 |
| Jason Crossfield | j****d@g****m | 1 |
| Jean Boussier | j****r@g****m | 1 |
| Mark Huk | m****e@g****m | 1 |
| Natalie Weizenbaum | n****z@g****m | 1 |
| Nick Schonning | n****i@g****m | 1 |
| Paul Bowsher | p****r@g****m | 1 |
| ReadmeCritic | f****t@g****m | 1 |
| Rodrigo Rosenfeld Rosas | r****s@g****m | 1 |
| Roman Usherenko | r****o@g****m | 1 |
| Ryunosuke Sato | t****s@g****m | 1 |
| Sam Jewell | s****m@b****m | 1 |
| Yamagishi Kazutoshi | y****s@d****h | 1 |
| ferdinand | f****o | 1 |
| kinopyo | f****y@g****m | 1 |
Committer domains:
- desire.sh: 1
- bridge-u.com: 1
- google.com: 1
- nyh.se: 1
- umich.edu: 1
- evilmartians.com: 1
- tinycandyhammers.com: 1
- edward.bio: 1
- mintcore.se: 1
- edwardog.net: 1
Issue and Pull Request metadata
Last synced: about 2 months ago
Total issues: 70
Total pull requests: 35
Average time to close issues: over 1 year
Average time to close pull requests: 10 months
Total issue authors: 66
Total pull request authors: 29
Average comments per issue: 3.81
Average comments per pull request: 1.83
Merged pull request: 12
Bot issues: 0
Bot pull requests: 0
Past year issues: 1
Past year pull requests: 2
Past year average time to close issues: N/A
Past year average time to close pull requests: about 1 month
Past year issue authors: 1
Past year pull request authors: 2
Past year average comments per issue: 25.0
Past year average comments per pull request: 0.0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- kuyenda (3)
- mibamur (2)
- Marcellllll (2)
- ricvillagrana (1)
- hadmut (1)
- claudiainbytes (1)
- gorenburg (1)
- constantm (1)
- Valkryst (1)
- michaelglass (1)
- dreikanter (1)
- christiannelson (1)
- reckerswartz (1)
- willhaslett (1)
- LightningRpper (1)
Top Pull Request Authors
- olleolleolle (3)
- thatguyinabeanie (2)
- tricknotes (2)
- voxik (2)
- boutil (2)
- bolandrm (2)
- bodnarbm (2)
- aqeelvn (1)
- tonytonyjan (1)
- ahorek (1)
- mibamur (1)
- javierjulio (1)
- asottile (1)
- henrik (1)
- unasuke (1)
Top Issue Labels
- need contributor (1)
Top Pull Request Labels
Package metadata
- Total packages: 11
-
Total downloads:
- rubygems: 317,187,102 total
- Total docker downloads: 1,200,672,198
- Total dependent packages: 162 (may contain duplicates)
- Total dependent repositories: 109,601 (may contain duplicates)
- Total versions: 68
- Total maintainers: 1
gem.coop: sassc-rails
Integrate SassC-Ruby into Rails.
- Homepage: https://github.com/sass/sassc-rails
- Documentation: http://www.rubydoc.info/gems/sassc-rails/
- Licenses: MIT
- Latest release: 2.1.2 (published over 6 years ago)
- Last Synced: 2026-03-01T10:02:28.249Z (2 days ago)
- Versions: 20
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 158,602,137 Total
- Docker Downloads: 600,336,099
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.054%
- Downloads: 0.161%
- Maintainers (1)
rubygems.org: sassc-rails
Integrate SassC-Ruby into Rails.
- Homepage: https://github.com/sass/sassc-rails
- Documentation: http://www.rubydoc.info/gems/sassc-rails/
- Licenses: MIT
- Latest release: 2.1.2 (published over 6 years ago)
- Last Synced: 2026-02-28T18:01:24.901Z (3 days ago)
- Versions: 20
- Dependent Packages: 162
- Dependent Repositories: 109,601
- Downloads: 158,584,965 Total
- Docker Downloads: 600,336,099
-
Rankings:
- Dependent repos count: 0.115%
- Downloads: 0.161%
- Docker downloads count: 0.184%
- Dependent packages count: 0.222%
- Average: 0.907%
- Stargazers count: 2.196%
- Forks count: 2.566%
- Maintainers (1)
proxy.golang.org: github.com/sass/sassc-rails
- Homepage:
- Documentation: https://pkg.go.dev/github.com/sass/sassc-rails#section-documentation
- Licenses: mit
- Latest release: v2.1.2+incompatible (published over 6 years ago)
- Last Synced: 2026-02-25T18:01:31.215Z (6 days ago)
- Versions: 20
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 2.317%
- Forks count: 2.533%
- Average: 6.307%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
debian-11: ruby-sassc-rails
- Homepage: https://github.com/sass/sassc-rails
- Documentation: https://packages.debian.org/bullseye/ruby-sassc-rails
- Licenses:
- Latest release: 2.1.2-5 (published 21 days ago)
- Last Synced: 2026-02-13T08:24:39.954Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-sassc-rails
- Homepage: https://github.com/sass/sassc-rails
- Documentation: https://packages.debian.org/bookworm/ruby-sassc-rails
- Licenses:
- Latest release: 2.1.2-6 (published 19 days ago)
- Last Synced: 2026-02-12T23:40:53.734Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
Dependencies
- bundler >= 0 development
- mocha >= 0 development
- pry >= 0 development
- rake ~> 10.0 development
- railties >= 4.0.0
- sassc >= 2.0
- sprockets > 3.0
- sprockets-rails >= 0
- tilt >= 0
Score: 31.15042243034666