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
It would be great if we could gitignore the generated routes and execute the rake task automatically when the assets are building.
Something such as
# Rakefile
task "vite:install_dependencies" => "js_from_routes:generate"
# or
# lib/tasks/js_from_routes.js
Rake::Task["vite:install_dependencies"].enhance do
Rake::Task["js_from_routes:generate"].invoke
end
Note: I was unsuccessful at hooking assets:precompile directly
The text was updated successfully, but these errors were encountered:
Hi,
It would be great if we could gitignore the generated routes and execute the rake task automatically when the assets are building.
Something such as
Note: I was unsuccessful at hooking
assets:precompile
directlyThe text was updated successfully, but these errors were encountered: