gulp-jade-filter
This plugin help you to reduce jade compilation time.
Install
npm i gulp-jade-filter --save-dev
On first run this plugin create jade inheritance tree. Each other run plugin check all files and push only modificated files. If it is child, plugin push his parent file. But you should select glob for parent files.
For example, i have app/jade
directory, where i create main templates like home.jade, about.jade, contacts.jade
etc.
File tree example:
common/ varspug mixinspugtemplates/ headerpug footerpughomejadeaboutjade
Gulp task example:
var jade = ;var jadeFilter = gulp;
Full composition (gulp#4)
'use strict'; const $ = rename: 'jade-filter': 'jadeFilter' ; const gulp = ;const combine = obj gulp; gulp; gulp;
Api
option.match:
This is minimatch option that relative to gulp.src directory.
default:
*.jade
option.ext:
This option used for including file.
default:
pug