rails / cssbundling-rails

Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js.
MIT License
563 stars 83 forks source link

Fix running "rails new --css bootstrap" on 7.1 #147

Closed skipkayhil closed 5 months ago

skipkayhil commented 5 months ago

Fixes rails/rails#50671

Rails 7.1 included a change to allow using importmaps along with all cssbundling options. However, the Bootstrap installer was never updated to take this new default into effect (and is currently broken because of this).

This commit adds the additional configuration required to use the Bootstrap npm package with importmaps so that "rails new" generates an application that runs without errors.

Peredery commented 5 months ago

fyi, https://github.com/twbs/bootstrap-rubygem/pull/271

manuelmeurer commented 5 months ago

@Peredery Note that cssbundling uses the Bootstrap npm package, not the gem that you linked to.