Closed gurgeous closed 1 year ago
Also, I had to add a custom template for index.js
, which uses a hardcoded ~/api
:
_1.template_index_path = Rails.root.join("config/initializers/js_from_routes_index.js.erb")
//
// DO NOT MODIFY: This file was automatically generated by JsFromRoutes.
import * as helpers from '~/vendor/api/all'
export * from '~/vendor/api/all'
export default helpers
Hey, great gem and thank you so much for creating! I wanted to move
app/frontend/api
toapp/frontend/vendor/api
so I can easily exclude it from linting, etc. I tried this:It sorta worked, but the generated imports don't include
vendor
:I can work around this with a monkeypatch, of course:
Probably better fix though :) Thanks again!