Sha256: 6b5fa91b397d514bc1669834110c14bbc6fced802bc28730410ca7e403bfe9ed
Contents?: true
Size: 888 Bytes
Versions: 11
Compression:
Stored size: 888 Bytes
Contents
# frozen_string_literal: true module Katalyst module GOVUK module Formbuilder # Engine is responsible for adding assets to load path class Engine < ::Rails::Engine initializer "katalyst-govuk-formbuilder.assets" do config.after_initialize do |app| if app.config.respond_to?(:assets) app.config.assets.paths << root.join("vendor/assets/stylesheets") app.config.assets.precompile += %w(katalyst-govuk-formbuilder.js) end end end initializer "katalyst-govuk-formbuilder.importmap", before: "importmap" do |app| if app.config.respond_to?(:importmap) app.config.importmap.paths << root.join("config/importmap.rb") app.config.importmap.cache_sweepers << root.join("app/assets/javascripts") end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems