Open malparty opened 2 months ago
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.
SCSS build currently relies on Node.js.
The cssbundling-rails gem relies on Node.js. [Rails Guides](https://guides.rubyonrails.org/asset_pipeline.html#dartsass-rails) recommend using the dartsass-rails to remove Node.js dependency.
cssbundling-rails
./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. https://github.com/rails/importmap-rails/issues/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](https://github.com/rails/importmap-rails/issues/107#issuecomment-1049793920)
[!NOTE] It turns out import-maps is limited to JS and won’t let you pin other assets like SCSS or images. https://github.com/rails/importmap-rails/issues/80
import-maps
“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](https://github.com/rails/importmap-rails/issues/107#issuecomment-1049793920)
Issue started in https://github.com/nimblehq/cx-web/pull/757
inherit #431
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) recommend using the dartsass-rails to remove Node.js dependency.Who Benefits?