-
Notifications
You must be signed in to change notification settings - Fork 148
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
Custom output path #295
Comments
Yes, use |
Thank you for pointing that out. I'm still having issues setting the output path, it seems that changes can only be made relative to js-routes/lib/js_routes/configuration.rb Line 77 in e158c58
All of the following configurations resulted in an error: config.file = 'app/frontend/routes'
# app/javascript/app/frontend/routes isn't a file
config.file = Rails.root.join('app', 'frontend', 'routes')
# app/javascript/var/project/app/frontend/routes isn't a file
config.file = 'app/frontend/routes/routes.js'
# app/javascript/app/frontend/routes doesn't exist
config.file = Rails.root.join('app', 'frontend', 'routes', 'routes.js')
# app/javascript/var/project/app/frontend/routes doesn't exist The closest I've gotten was using |
In your last example: does |
Yes, the directory existed and |
I can confirm this (js-routes 2.2.1). Last version it worked is 2.0.8 |
Fixed in 2.2.2 👍 |
Can confirm it's working. |
This is still not working (app/assets/javascripts/) exists within my rails app: rake js:routes |
Forgive me if this is documented, but I can't seem to figure out how to change the output path for the generated routes files. Using Rails 7 with Vite, I keep my frontend code in
app/frontend
, and so would like this gem to output routes to that directory. I would actually like them to be placed in a folder inside that directory. Is this currently possible?The text was updated successfully, but these errors were encountered: