Here’s a question about the behavior of the rails assets:precompile
command.
When I add these two lines to my app/config/initializers/assets.rb
file:
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Rails.application.config.assets.paths << Rails.root.join('node_modules/bootstrap-icons/font')
I don’t see a specific folder added to public/assets/fonts
as needed for my asset pipeline setup.
But when I only add one line to app/config/initializers/assets.rb
Rails.application.config.assets.paths << Rails.root.join('node_modules/bootstrap-icons/font')
I see the following added:
--public
--assets
--fonts
-bootstrap-icons-7b0bd792.woff2
-bootstrap-icons-61efca6d.woff
Why does the broader instruction of node_modules
knock out the second instruction for font directory/file placement?