Sha256: 21c31cbdaf7f1776fc38b58269968102100cb432fc5eeafedfe8c91ab365df72
Contents?: true
Size: 904 Bytes
Versions: 1
Compression:
Stored size: 904 Bytes
Contents
# frozen_string_literal: true require "rails/engine" module CableReady module Element class Engine < Rails::Engine initializer "cable_ready-element.assets" do |app| if app.config.respond_to?(:assets) app.config.assets.precompile += %w[ cable_ready-element.js cable_ready-element.min.js cable_ready-element.min.js.map cable_ready-element.umd.js cable_ready-element.umd.min.js cable_ready-element.umd.min.js.map ] end end initializer "cable_ready-element.importmap", before: "importmap" do |app| if app.config.respond_to?(:importmap) app.config.importmap.paths << Engine.root.join("lib/cable_ready/element/importmap.rb") app.config.importmap.cache_sweepers << Engine.root.join("app/assets/javascripts") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cable_ready-element-5.0.0 | lib/cable_ready/element/engine.rb |