You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: