Skip to content

uk-taniyama/pug-plugin-no-yield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pug-plugin-no-yield

This pug-plugin converts "yield" into a tag instead of a keyword.

So, you can use "yield" for riot keywoad.

Installation

npm install --save-dev pug-plugin-no-yield

Usage

In your webpack.config.js file:

module.exports = {
  // your config settings ...
  module: [
    // your modules...
    loaders: [{
      include: /\.tag.pug/,
      // pass options to pug as a query
      loader: 'riotjs!pug-html?pretty&exports=false&plugins[]=pug-plugin-no-yield'
    }]
  ]
};

See webpack documentation.

License

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

About

This pug-plugin converts "yield" into a tag instead of a keyword.

Resources

License

Stars

Watchers

Forks

Packages

No packages published