Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook the rake assets:precompile automatically #44

Open
james-em opened this issue Apr 16, 2024 · 0 comments
Open

Hook the rake assets:precompile automatically #44

james-em opened this issue Apr 16, 2024 · 0 comments
Labels
bug: pending triage Something doesn't seem to be working, but hasn't been verified

Comments

@james-em
Copy link

james-em commented Apr 16, 2024

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

# 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

@james-em james-em added the bug: pending triage Something doesn't seem to be working, but hasn't been verified label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: pending triage Something doesn't seem to be working, but hasn't been verified
Projects
None yet
Development

No branches or pull requests

1 participant