Answer the question
In order to leave comments, you need to log in
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)
I use Jade in conjunction with BrowserSync
Task Jade
Task watch and default
Who uses Jade + BrowserSync, how did they fix the problem? Thanks
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question