Skip to content

markbrouch/pug-plugin-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm npm

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 file
  • extensions = ['.pug', '.jade']
  • packageFilter = will first search for "pug" and then "main" in package.json

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

Pug plugin for resolving templates in node_modules

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published