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

Support for .erb files #109

Closed
j-manu opened this issue Sep 8, 2022 · 2 comments
Closed

Support for .erb files #109

j-manu opened this issue Sep 8, 2022 · 2 comments

Comments

@j-manu
Copy link

j-manu commented Sep 8, 2022

In sprockets if you place assets/javascript/client/pay.html.erb and assets/javascript/client/pay.js.erb both will be compiled and placed in assets folder as client/pay.html and client/pay.js . Is there a way to replicate this behaviour in propshaft?

@brenogazzola
Copy link
Collaborator

Unfortunately no. Propshaft by design does not do transpiling/compiling (coffee to js, scss to css, etc). You need extra gems like cssbundling-rails and jsbundling-rails for that. Currently I’m not aware of any gems that handle erb files.

@brenogazzola
Copy link
Collaborator

Feel free to keep comenting, but I’m closing this since it is not an issue.

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