Y
Y
Yuri Kucherenko2016-03-16 16:03:23
JavaScript
Yuri Kucherenko, 2016-03-16 16:03:23

How to track only the current Jade (Gulp) file?

Hello everyone, the problem is this - there is a jade folder in which there are a bunch of folders-subfolders with modules, helpers and so on. At the root of the folder are the main "MAIN" files, where everything is imported and included, then the main files are compiled into HTML and fall into the "app" folder. When there are more than one page ("MAIN" files), the gallp monitors all these files and when one file is changed, for example ("_contact.jade"), all other main files are updated.
Screenshot from the terminal (I saved only one file and it updated the rest)
e87018485a3f4be6a04dc8f589c10374.png
I use Jade in conjunction with BrowserSync
Task Jade
c295375b13084c2aac7fcfb331955e81.png
Task watch and default
5f6db4b95c78486fb79ad8ce128131d9.png
Who uses Jade + BrowserSync, how did they fix the problem? Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2016-03-16
@mydearfriend


I advise you to use gulp-cached as a watcher, so you can track changes in some file included in everything (header.jade, for example) and recompile all files, clearing the cache, otherwise (MAIN files) only the changed file will be recompiled

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question