Closed pricci1 closed 1 year ago
Instead of assuming that the app is using the default path (/app/javascript), you could get the right one with Webpacker.config.source_path .
/app/javascript
Webpacker.config.source_path
Currently, if /app/javascript is not being used, Sprockets is used.
https://github.com/railsware/js-routes/blob/ff9c32d82811d2ffda0acec7f37f7ec7af82b6af/lib/js_routes/configuration.rb#L78C7-L78C52
Instead of assuming that the app is using the default path (
/app/javascript
), you could get the right one withWebpacker.config.source_path
.Currently, if
/app/javascript
is not being used, Sprockets is used.https://github.com/railsware/js-routes/blob/ff9c32d82811d2ffda0acec7f37f7ec7af82b6af/lib/js_routes/configuration.rb#L78C7-L78C52