-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rerendering dependencies does not work when child files are already watched #1888
Comments
+1 |
Darn it, now we actually have to build a tree of dependency. |
Loosely based on a patch by @richardgoater. Closes #1967. Fixes #1888.
Loosely based on a patch by @richardgoater. Closes #1967. Fixes #1888.
I have the same issue. Is there a current workaround? |
@distilledhype not yet, until we merge my PR which will be in the next release (hopefully 2.0.0). |
@TimothyGu OK. Good to know that it is fixed already though. Any idea when that will be? |
Loosely based on a patch by @richardgoater. Closes pugjs/pug#1967. Fixes pugjs/pug#1888.
@ForbesLindesay awesome that this is fixed now, but I assume I will have to wait until the release of Jade 2 in order to use it correct? |
You could try using the new https://github.com/jadejs/jade-cli which will replace the built in jade binary in 2.0.0. It should already have all the updates. |
#1086 addressed watching father files and their children jade files. It does not work for me, if the children are already being watched. Please see the example for more explanations.
Example
A
main.jade
which includesa.jade
andb.jade
working
If I watch only the
main.jade
jade -w *.jade
the files
a.jade
andb.jade
are automatically watched (as they are a dependency frommain.jade
). If I changea.jade
,main.jade
will be rerendered.not working
If I watch all files
jade -w .
all files are being watched. But if I now change
a.jade
, onlya.jade
will be rerendered.main.jade
will not be rerendered.The text was updated successfully, but these errors were encountered: