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

Livereload Reloading All the Paths #92

Open
nolanseaton opened this issue Jul 7, 2016 · 5 comments
Open

Livereload Reloading All the Paths #92

nolanseaton opened this issue Jul 7, 2016 · 5 comments

Comments

@nolanseaton
Copy link

Recently migrated a project from middleman 3 to 4. Livereload is working, however, it is reloading all of my haml files and not just the changed file.

I change careers.html.haml and in terminal I see it reloading paths from work/*, explore, contact etc...

Before the migration I would just see the careers page being reloaded in terminal.

config.rb

activate :livereload

Is there a config option I'm missing or is this the correct functionality?

Thanks!

@inem
Copy link

inem commented Aug 22, 2016

I have the same effect, and it is really annoying. Especially if you edit and update a file frequently, and your website is big.

@inem
Copy link

inem commented Aug 22, 2016

Proof:
reload

You can reproduce it easily, using this project: https://gitlab.com/gitlab-com/www-gitlab-com

@tdreyno
Copy link
Member

tdreyno commented Sep 5, 2016

Unfortunately, we don't have a means of knowing which files of a same-type influence which other files. Our template renderer (Padrino) does not provide a dependency graph. The simplest (and slowest) solution is to reload all files of a type if one changes.

@tdreyno
Copy link
Member

tdreyno commented Sep 5, 2016

As an aside, there is no full-time maintainer for this extension. I just try keep it from being broken, but never use Livereload when using Middleman for work.

If anyone has time, desire and attention, I'd happily allow them to work on improving Livereload support.

@sandstrom
Copy link
Contributor

@tdreyno Is there a way to turn off the reload everything behaviour?

Also, somewhat related, where are the files that the reload extension operate on defined?
https://github.com/middleman/middleman-livereload/blob/master/lib/middleman-livereload/extension_3_1.rb#L52

also, I've found a small bug in the ignore option, with a fix here: #95

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

4 participants