1
1
# SassC::Rails [ ![ Build Status] ( https://travis-ci.org/bolandrm/sassc-rails.svg )] ( https://travis-ci.org/bolandrm/sassc-rails ) [ ![ Gem Version] ( https://badge.fury.io/rb/sassc-rails.svg )] ( http://badge.fury.io/rb/sassc-rails )
2
2
3
- ### WIP.
3
+ We all love working with Sass, but compilation can take quite a long time for larger
4
+ codebases. This gem integrates the C implementation of Sass,
5
+ [ libsass] ( https://github.com/sass/libsass ) , into the asset pipeline.
6
+
7
+ In one larger project, this made compilation 4x faster:
8
+
9
+ ```
10
+ # Using sassc-rails
11
+
12
+ [1] pry(main)> Benchmark.bm { |bm| bm.report { Rails.application.assets["application.css"] } }
13
+ user system total real
14
+ 1.720000 0.170000 1.890000 ( 1.936867)
15
+
16
+ # Using sass-rails
17
+
18
+ [1] pry(main)> Benchmark.bm { |bm| bm.report { Rails.application.assets["application.css"] } }
19
+ user system total real
20
+ 7.820000 0.250000 8.070000 ( 8.106347)
21
+ ```
22
+
23
+ This should essentially be a drop in alternative to [ sass-rails] ( https://github.com/rails/sass-rails ) .
24
+
25
+ _ Note: This is a new project, please report any issues you come across!_
4
26
5
27
## Installation
6
28
@@ -15,14 +37,11 @@ And then execute:
15
37
$ bundle
16
38
17
39
18
- ## Usage
19
-
20
- TODO: Write usage instructions here
21
-
22
40
## Contributing
23
41
24
42
1 . Fork it ( https://github.com/[my-github-username ] /sassc-rails/fork )
25
- 2 . Create your feature branch (` git checkout -b my-new-feature ` )
26
- 3 . Commit your changes (` git commit -am 'Add some feature' ` )
27
- 4 . Push to the branch (` git push origin my-new-feature ` )
28
- 5 . Create a new Pull Request
43
+ 1 . Create your feature branch (` git checkout -b my-new-feature ` )
44
+ 1 . Commit your changes (` git commit -am 'Add some feature' ` )
45
+ 1 . Add Tests
46
+ 1 . Push to the branch (` git push origin my-new-feature ` )
47
+ 1 . Create a new Pull Request
0 commit comments