704 sao GitHub và vẫn tăng — sass/sassc-rails là dự án HTML mà TopGit đang theo dõi trên nền tảng. Integrate SassC-Ruby with Rails!
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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:
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
Correct reference to SassC::Script::Value::String
2.1.1
Fix Scaffolding
2.1.0
JRuby support
SCSS / SASS scaffolding
2.0.0
Drop support for Sprockets 2
Remove dependency on Ruby Sass
1.3.0
Silence Sprockets deprecation warnings
Sprockets 4 compatibility
1.2.1
Bump SassC (and thus LibSass) version
1.2.0
Support sprockets-rails 3
Only depend on Railties instead of full Rails
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)
sass/sassc-rails có 704 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/sass/sassc-rails. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
sass/sassc-rails có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho sass/sassc-rails. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
sass/sassc-rails còn đang phát triển không?
Commit gần nhất trên sass/sassc-rails là 1.1 năm trước (theo timestamp GitHub). Repo có 106 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
sass/sassc-rails là gì?
sass/sassc-rails (sass/sassc-rails) là dự án HTML trên GitHub. Theo mô tả gốc: Integrate SassC-Ruby with Rails!
sass/sassc-rails viết bằng ngôn ngữ gì?
sass/sassc-rails chủ yếu viết bằng HTML. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
sassc-rails có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về sassc-rails.