We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc563f4 commit 1bcd09aCopy full SHA for 1bcd09a
lib/importmap_mocha/engine.rb
@@ -19,6 +19,14 @@ class Engine < ::Rails::Engine
19
end
20
21
22
+ PRECOMPILE_ASSETS = %w( importmap_mocha.js chai.js mocha.js mocha.css )
23
+
24
+ initializer "turbo.assets" do
25
+ if Rails.application.config.respond_to?(:assets)
26
+ Rails.application.config.assets.precompile += PRECOMPILE_ASSETS
27
+ end
28
29
30
initializer "importmap_mocha.importmap", before: "importmap" do |app|
31
if Rails.application.respond_to?(:importmap)
32
app.config.importmap.paths << Engine.root.join("config/importmap.rb")
0 commit comments