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

Use configured Webpacker directory instead of default #309

Closed
pricci1 opened this issue Jul 28, 2023 · 0 comments
Closed

Use configured Webpacker directory instead of default #309

pricci1 opened this issue Jul 28, 2023 · 0 comments

Comments

@pricci1
Copy link

pricci1 commented Jul 28, 2023

Instead of assuming that the app is using the default path (/app/javascript), you could get the right one with 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants