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 option to disable default listeners #13

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

jwald1
Copy link
Contributor

@jwald1 jwald1 commented Jan 11, 2022

Problem:
When a user saves a file in the app/javascript directory, the page reloads even when using a build tool with HMR.

Solution:

This PR adds the ability to disable listing to the default paths such as 'app/javascript' by setting config.hotwire_livereload.disable_default_listeners to true like so:

config.hotwire_livereload.disable_default_listeners = true

@kirillplatonov kirillplatonov merged commit 10ddd26 into kirillplatonov:main Jan 13, 2022
@kirillplatonov
Copy link
Owner

Thanks for the contribution! Included in v1.1.0.

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

Successfully merging this pull request may close these issues.

None yet

2 participants