Skip to content

[Remove Node.js] Use dart-sass for SCSS #523

@malparty

Description

@malparty
Member

inherit #431

Note

This issue does NOT include any code change in the Rails template (yet), as these will be based on the RFC results.

Why

SCSS build currently relies on Node.js.

Checklist

Insight 📝

The cssbundling-rails gem relies on Node.js.
[Rails Guides](https://guides.rubyonrails.org/asset_pipeline.html#[dartsass-rails](https://guides.rubyonrails.org/asset_pipeline.html#dartsass-rails)) recommend using the dartsass-rails to remove Node.js dependency.

./bin/bundle add dartsass-rails
./bin/rails dartsass:install

Note

It turns out import-maps is limited to JS and won’t let you pin other assets like SCSS or images.
rails/importmap-rails#80

If you need Node for anything, I'd use it for everything. The benefit of import maps is that it provides a path with no Node at all. cssbundling-rails and jsbundling-rails is a great combo to use with Bootstrap 👍”
DHH – [source](rails/importmap-rails#107 (comment))

Who Benefits?

  • Developers for the knowledge
  • Future clients' projects for improved tooling decisions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @malparty

      Issue actions

        [Remove Node.js] Use dart-sass for SCSS · Issue #523 · nimblehq/rails-templates