From 0c3802b31cd69d518d1ebf8efdbb7ef9eb40cc6a Mon Sep 17 00:00:00 2001 From: Jamie Little Date: Thu, 1 Aug 2019 09:02:45 -0500 Subject: [PATCH] Explicitly precompile css and js --- lib/zizia/engine.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/zizia/engine.rb b/lib/zizia/engine.rb index 55f8343..0ea3da1 100644 --- a/lib/zizia/engine.rb +++ b/lib/zizia/engine.rb @@ -9,6 +9,10 @@ module Zizia class Engine < ::Rails::Engine isolate_namespace Zizia + initializer 'zizia.assets.precompile' do |app| + app.config.assets.precompile += %w[*.js *.css] + end + initializer :append_migrations do |app| unless app.root.to_s.match root.to_s config.paths['db/migrate'].expanded.each do |expanded_path|