I discovered that I missed a step for Rails production. See: github.com/rails/rails/issues/29563 github.com/alphagov/verify-self-service/pull/32/files # Rakefile task "assets:precompile" => ["copy_node_modules_dependencies"] # lib/tasks/copy_node_modules_dependencies.rb require 'fileutils' desc 'Copy node_modules related assets' task 'copy_node_modules_dependencies' do source = 'node_modules/bootstrap-icons/font/fonts/' dest = 'public/assets/' puts 'Copying Bootstrap Icons files' FileUtils.copy_entry(source, dest) end
I discovered that I missed a step for Rails production. See:
github.com/rails/rails/issues/29563
github.com/alphagov/verify-self-service/pull/32/files
# Rakefile
task "assets:precompile" => ["copy_node_modules_dependencies"]
# lib/tasks/copy_node_modules_dependencies.rb
require 'fileutils'
desc 'Copy node_modules related assets'
task 'copy_node_modules_dependencies' do
source = 'node_modules/bootstrap-icons/font/fonts/'
dest = 'public/assets/'
puts 'Copying Bootstrap Icons files'
FileUtils.copy_entry(source, dest)
end
useful video : )