Get files which include or extend the given Pug file.
Get files which include or extend the given Pug file.
npm install @unisharp/pug-inheritance --save
yarn add @unisharp/pug-inheritance
const PugInheritance = require('@unisharp/pug-inheritance');
let pugInheritance = new PugInheritance('resources/pug/**/*.pug');
console.log(pugInheritance.getInheritance('resources/pug/layout/app.pug'));
[
'resources/pug/layout/app.pug',
'resources/pug/index.pug',
'resources/pug/page.pug'
]
See @unisharp/gulp-pug-inheritance.