Closed max-degterev closed 10 years ago
If jadeify emits 'file'
events on the transform stream then this will work as you are proposing. Here's what brfs does: https://github.com/substack/brfs/blob/master/index.js#L90
cool, thanks. looks like I'm not the only one having this problem https://github.com/domenic/jadeify/issues/11
Hi!
I'm using watchify with the jadeify transform. Everything works like a charm, but browserify cannot follow includes inside jade templates. So if one of the included templates is changed, it doesn't reload the bundle, nor will it if I call
bundler.bundle()
manually because the main template haven't changed.Currently I have a watcher on all jade files, and then re-create watchify bundle:
That's not good and calling
.close()
at that point is already too late because bundle might have had that jade template watched and is already in the process of recompilation.It would be really nice to have a method that would just force watchify to clear caches and reload every watched file. Is there something like that, or am I doing something wrong?
A bit more code to understand what's happening: