initializer 'WefitAdmin precompile hook', group: :all do |app|
root_foundation_gem = Gem.loaded_specs['foundation-rails'].full_gem_path
Dir.glob("#{root_foundation_gem}/**/").each do |path|
app.config.assets.paths << path
end
app.config.assets.precompile += %w(my_engine/my_engine.css my_engine/my_engine.js)
end
When i run with development mode, my site can load css file, but cause error when load js file.
I check foundation gem directory and see foundation.js.es6. So i think maybe the file is not precompiled.
When I add the gem in my engine, gemspecs as follow
my_engine.js as follow
I setup engine.rb as follow
When i run with development mode, my site can load css file, but cause error when load js file. I check foundation gem directory and see foundation.js.es6. So i think maybe the file is not precompiled.