Skip to content

Commit cc0951d

Browse files
leeshepparddhh
andauthored
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]>
1 parent 731b49f commit cc0951d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

guides/source/asset_pipeline.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@ passing the `--skip-asset-pipeline` option.
3333
$ rails new appname --skip-asset-pipeline
3434
```
3535

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`:
3837

3938
```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
4146
```
4247

4348
To set asset compression methods, set the appropriate configuration options
@@ -49,9 +54,6 @@ config.assets.css_compressor = :yui
4954
config.assets.js_compressor = :terser
5055
```
5156

52-
NOTE: The `sassc-rails` gem is automatically used for CSS compression if included
53-
in the `Gemfile` and no `config.assets.css_compressor` option is set.
54-
5557
[`config.assets.css_compressor`]: configuring.html#config-assets-css-compressor
5658
[`config.assets.js_compressor`]: configuring.html#config-assets-js-compressor
5759

0 commit comments

Comments
 (0)