How to use ESBuild to load font files for Bootstrap Icons

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 3

  • @WinstonCodesOn
    @WinstonCodesOn  Год назад

    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

  • @azizdevfull
    @azizdevfull Год назад

    useful video : )