Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Idea] changes to <style> injected without page reload #104

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

[Idea] changes to <style> injected without page reload #104

mattdesl opened this issue Nov 10, 2015 · 5 comments

Comments

@mattdesl
Copy link
Owner

For demos and prototypes I often avoid a separate style.css and just make a few CSS tweaks inline in the index.html. It would be neat if Budo could LiveReload those without hard reloading the page.

It might work by diffing the HTML file changes to see if it's just a <style> tag that was changed.

The feature would probably have to be added to tiny-lr (or a fork) to get this working.

@yoshuawuyts
Copy link
Collaborator

Just to double check, this is supported by LiveReload but not tiny-lr right? cc/ @shama

@shama
Copy link

shama commented Nov 10, 2015

Not AFAIK, tiny-lr consumes livereload-js and is what does the live reloading. I'm not sure if they support it or something we'd need to do on tiny-lr.

@wclr
Copy link

wclr commented May 2, 2016

hot css reload not implemented 0_o?

@mattdesl
Copy link
Owner Author

mattdesl commented May 2, 2016

@whitecolor CSS reloading is implemented with <link href="..."> tags, but not <style> tags inline in an HTML file since the latter is much more complex.

@wclr
Copy link

wclr commented May 2, 2016

I actually searching for loading css modules with browserfy like:

require('./style.css')

with hot reload.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants