Open ruslanxdev opened 8 years ago
I'm not very sure, I've to test it, but maybe using https://github.com/jgable/gulp-cache and using the data.json and the filte content to generate the key. I'll try to test it this week.
I've testes with gulp-cache and its works with differents data.json, if all the jade files use the same data.json I think it should be compiled all again... sorry I don't have more ideas. Anyway, your code should work, are you having any errors?
Thank you, I have not found a solution to his problem. Everything works, but I was not able yet to optimize this process.
Hi! I know how to use gulp-jade with gulp-data. https://github.com/phated/gulp-jade#use-with-gulp-data http://stackoverflow.com/questions/27313107/gulp-using-gulp-jade-with-gulp-data
But I do not know how to use gulp-jade-inheritance with gulp-data. You have to either compile all pages when you change the JSON file, or search for and compile the pages that use this data. Maybe you have any ideas?
Here is my code:
Thanks!