ruby -v-> 3+
rails -v-> 7+
rails new app_name -d postgresql -Tcd app_name./bin/bundle add cssbundling-rails./bin/importmap pin bootstrap --from jsdelivr./bin/rails css:install:bootstrapbundle add faker --group "development""scripts": {
"build:css": "sass ./app/assets/stylesheets/application.bootstrap.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules"
}touch app/assets/stylesheets/customized_bootstrap.scssecho "@import 'customized_bootstrap';" | cat - app/assets/stylesheets/application.bootstrap.scss | tee app/assets/stylesheets/application.bootstrap.scss./bin/rails g controller home index./bin/rails db:drop db:create db:migrate db:seed./bin/dev
Hi. Ran across your trials here.
I'm wondering if you know how to add .css from a node_module? For example:
node_modules/leaflet/dist/leaflet.css. Could copy intoapp/assets/stylesheets/but seems like there should be a more robust way. If the node_module changes the css would not be current.