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

Works on first refresh with Bootstrap Twitter Jade template but no refreshes after the first #13

Closed
JesseBilsten opened this issue Jul 9, 2013 · 2 comments

Comments

@JesseBilsten
Copy link

If I change styles.sass and save, the page refreshes properly. But on the second edit of styles.sass the page no longer refreshes from the styles file. Does fine with updates to the template file itself and other files, but not from styles.sass.

I'm guessing this is because of how the styles are added to the template page on the Twitter Bootstrap Jade template:

From /src/layout/default.html.jade above "body"

- var styles = getBlock('styles')

...

- styles.add(["/vendor/prettify.css"])

...

- styles.add(["/styles/style.css"])

...

Then within "head"

!= styles.toHTML()

Is this not a valid way to include the styles? Or is there some way we can pick up on this and still refresh after the first one? Or, is it something else entirely that I can tweak to fix.

@balupton
Copy link
Member

balupton commented Apr 2, 2017

I believe this is an issue with the watchr dependency. I've updated watchr a few months ago, but the change needs to make itself into DocPad. Issue for that is over at docpad/docpad#1045

@balupton balupton closed this as completed Apr 2, 2017
@balupton
Copy link
Member

balupton commented Apr 2, 2017

Actually, does DocPad perform the regeneration, but the livereload plugin just fails to auto refresh the browser? If DocPad doesn't perform the regeneration, then probably the watchr issue, if it is the later, then it is a livereload issue.

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