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

HTML <style> LiveReload without page refresh #97

Open
mattdesl opened this issue Nov 10, 2015 · 4 comments
Open

HTML <style> LiveReload without page refresh #97

mattdesl opened this issue Nov 10, 2015 · 4 comments

Comments

@mattdesl
Copy link

I'm using tiny-lr programmatically and I want to be able to live-reload changes in a <style> tag inside .html files without refreshing the page and losing state. How can we go about including this feature, maybe behind a flag to keep the default behaviour simple?

I'd be willing to submit a PR once I have an idea of the best way to integrate this.

@shama
Copy link
Collaborator

shama commented Nov 10, 2015

👍 The part that live reloads in the client lives in the livereload-js package: https://github.com/zaius/livereload-js I'm not sure if it is supported already or not there.

Assuming it doesn't add to much overhead, I think just have the featured enabled by default is reasonable. Otherwise +1 to a flag.

@mattdesl
Copy link
Author

Hmm not sure why livereload-js on npm points to a fork (by @zaius), yet the original repo also suggests npm install livereload-js in their docs.

Confusing. 😕

@shama
Copy link
Collaborator

shama commented Nov 12, 2015

Oh yeah, whoops! It looks accidental in this commit: livereload/livereload-js@c0a72e0

@shama
Copy link
Collaborator

shama commented Nov 12, 2015

PR sent: livereload/livereload-js#44

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