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

Add basic sprockets support #41

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

codergeek121
Copy link
Contributor

@codergeek121 codergeek121 commented Dec 22, 2024

Add hotwire_spark.js to the precompiled assets. This adds Sprockets support for Rails 8 applications. Fixes #36.

Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful @codergeek121 thanks a lot.

All the apps I'm currently managing are using propshaft. Did you get to test this with an app using sprockets? Could youf confirm this fixed #36?

lib/hotwire/spark/engine.rb Show resolved Hide resolved
Add hotwire_spark.js to the precompiled assets. This adds Sprockets support for Rails 8 applications.
Fixes hotwired#36.
@codergeek121
Copy link
Contributor Author

Wonderful @codergeek121 thanks a lot.

All the apps I'm currently managing are using propshaft. Did you get to test this with an app using sprockets? Could youf confirm this fixed #36?

I created a simple Rails 7 Application with Sprockets, upgraded it to Rails 8 and tested my change against this app. Without my change, this would raise (because hotwire_spark.js is not precompiled) . With this PR, spark works again 👍

@jorgemanrubia jorgemanrubia merged commit 849f003 into hotwired:main Dec 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support sprockets
2 participants