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

Browser reload plugin #12

Closed
rhukster opened this issue Aug 18, 2014 · 5 comments
Closed

Browser reload plugin #12

rhukster opened this issue Aug 18, 2014 · 5 comments

Comments

@rhukster
Copy link
Member

A few people have already asked about a browser reload plugin. This is certainly doable, but I would like to get some feedback and thoughts on the functionality people would like to see.

http://cssrefresh.frebsite.nl/ provides a simple refresh using XMLHttpRequest to get modification time
https://github.com/guard/guard-livereload is a CLI version of LiveReload

Just ideas!

@bobrocke
Copy link

I use CodeKit most of the time and love its live updating abilities. When combined with MAMP Pro, I don't have any need for a Grav plug-in. But there are folks who don't use Macs and I'm not sure of their alternatives. Grunt and Gulp?

@rhukster
Copy link
Member Author

The intention would be not to actually do any sass/less compilation or minification or anything. It purely would be to reload the browser with your Grav page when you made saves to your CSS. This way you don't have to hit reload to see them in action.

@bobrocke
Copy link

I agree. CodeKit does a lot more than auto-refresh on compile/save. I just don't need anything in Grav to do that (compile or refresh). Others may see that differently.

@rhukster
Copy link
Member Author

Yah codekit does the refresh plus a lot more. But its mac-only, and actually does way too much for my process. I could see a simple refresh plugin being handy. It's actually pretty trivial do do. Maybe i'll just do it at will be available :)

@rhukster
Copy link
Member Author

Well I looked into this. Although there are javascript plugins, frankly the best option is 3rd party extensions or apps. I've tried this one: http://allenm.github.io/css-auto-reload/#en-version which is a chrome plugin. Easy to enable and works great reloading the CSS without even refreshing the browser. I think there's not much point in pursuing this plugin at this point.

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

No branches or pull requests

2 participants