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

enable livereload on directories, not strictly files ending with .html (fixes #72) #73

Merged
merged 1 commit into from
Dec 2, 2015
Merged

enable livereload on directories, not strictly files ending with .html (fixes #72) #73

merged 1 commit into from
Dec 2, 2015

Conversation

cvan
Copy link
Contributor

@cvan cvan commented Sep 25, 2015

No description provided.

@cvan
Copy link
Contributor Author

cvan commented Sep 25, 2015

here's a prior patch, but I like this better

@mattdesl
Copy link
Owner

I added example/demo/index.html and tried testing like so:

./bin/cmd.js test/fixtures/app:bundle.js --dir example/ --live | garnish

But the index.html request never finishes. This is something to do with inject-lr-script.

Could also explore inject-lr-script-stream and avoid the mime-type check, but might involve changing ecstatic to something simpler like filed.

@cvan
Copy link
Contributor Author

cvan commented Sep 28, 2015

But the index.html request never finishes. This is something to do with inject-lr-script.

Yep, I noticed that on budo master too. I was going to troubleshoot that but forgot. Separate issue?

@mattdesl
Copy link
Owner

Ah must be a separate issue then 😄

@cvan
Copy link
Contributor Author

cvan commented Sep 28, 2015

Yep, I noticed that on budo master too. I was going to troubleshoot that but forgot. Separate issue?

Actually, looks like I regressed it here heh. Investigating…

@cvan
Copy link
Contributor Author

cvan commented Sep 28, 2015

But a similar issue exists on master:

http://localhost:9966/404.html response will never finish.


Filed mattdesl/inject-lr-script#3.

@cvan
Copy link
Contributor Author

cvan commented Dec 2, 2015

would you be willing to merge this? I still am encountering #79 but it looks to be a separate issue. and I spent some time trying to tackle #80, but it took quite some time - would like to revisit it sometime though.

mattdesl added a commit that referenced this pull request Dec 2, 2015
enable livereload on directories, not strictly files ending with `.html` (fixes #72)
@mattdesl mattdesl merged commit 234d9f3 into mattdesl:master Dec 2, 2015
@mattdesl
Copy link
Owner

mattdesl commented Dec 2, 2015

I just tested again and it doesn't seem to hang. Merged! Thanks

@mattdesl
Copy link
Owner

mattdesl commented Dec 2, 2015

I'm doing more tests locally and this seems to break some functionality. It looks like images and other files are getting picked up by the regex. I will keep investigating.

@mattdesl
Copy link
Owner

mattdesl commented Dec 2, 2015

I added a new regex when not in --pushstate mode, let me know if it's working in v7.

mattdesl added a commit that referenced this pull request Jan 28, 2017
enable livereload on directories, not strictly files ending with `.html` (fixes #72)
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.

2 participants