pug-plugin-modules
v0.3.0
Published
Pug plugin for resolving templates in node_modules
Downloads
5
Readme
pug-plugin-modules
Pug plugin for resolving templates in node_modules
Installation
npm install pug-plugin-modules
Import plugin:
const modulesPlugin = require('pug-plugin-modules');
then, in your Pug options object:
{
plugins: [
modulesPlugin(/*options*/)
]
}
Usage
The same options as resolve are available. PugPluginModules provides the following defaults:
baseDir
= directory of source fileextensions
=['.pug', '.jade']
packageFilter
= will first search for"pug"
and then"main"
inpackage.json
License
MIT (http://www.opensource.org/licenses/mit-license.php)