You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Asset Pipeline Guideline reference to Sass gem (rails#47491)
* Update Asset Pipeline guide refs to Sass gem
Sassc-rails gem is no longer maintained. Sass is now compiled by Dart. The new dartsass-rails gem wraps the standalone release of the Dart version of Sass.
* Update asset_pipeline.md
---------
Co-authored-by: David Heinemeier Hansson <[email protected]>
Copy file name to clipboardExpand all lines: guides/source/asset_pipeline.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,11 +33,16 @@ passing the `--skip-asset-pipeline` option.
33
33
$ rails new appname --skip-asset-pipeline
34
34
```
35
35
36
-
Rails can easily work with Sass by adding the [`sassc-rails`](https://github.com/sass/sassc-rails)
37
-
gem to your `Gemfile`, which is used by Sprockets for [Sass](https://sass-lang.com) compilation:
36
+
Rails can easily work with [Sass](https://sass-lang.com) by adding the [`dartsass-rails`](https://github.com/rails/dartsass-rails) gem to your `Gemfile`:
38
37
39
38
```ruby
40
-
gem 'sassc-rails'
39
+
gem 'dartsass-rails'
40
+
```
41
+
42
+
After bundling the gem, run the following to complete the installation:
43
+
44
+
```bash
45
+
$ rails dartsass:install
41
46
```
42
47
43
48
To set asset compression methods, set the appropriate configuration options
0 commit comments