lib/vite_rails/engine.rb in vite_rails-2.0.12 vs lib/vite_rails/engine.rb in vite_rails-2.0.13

- old
+ new

@@ -31,6 +31,11 @@ Spring.after_fork { ViteRuby.bootstrap } Spring.watch(ViteRuby.config.config_path) end end end + + initializer 'vite_rails.set_source' do |app| + source_dir = ViteRuby.config.root.join(ViteRuby.config.source_code_dir) + app.config.javascript_path = source_dir.relative_path_from(Rails.root.join('app')).to_s + end end