gulp-query-pug

1.1.1 • Public • Published

gulp-query-pug

PUG plugin for gulp-query

Uses pug

This plugin provides high performance template engine.

npm install gulp-query gulp-query-pug

Example

Paste the code into your gulpfile.js and configure it

let build = require('gulp-query')
  , pug = require('gulp-query-pug')
;
build((query) => {
    query.plugins([pug])
      .pug('src/views/*.pug','html/','tpl')

      .pug({
        from: ['src/views/*.pug','src/views/auth/*.pug'],
        to: 'html/',
        name: 'views'
      })
      ;
});

And feel the freedom

gulp
gulp --production // For production
gulp watch // Watching change
gulp pug // Only for pug
gulp pug:tpl // Only pug:tpl
gulp pug:views watch // Watching change only for pug:views
...

Options

.pug({
    name: "task_name", // For gulp pug:task_name 
    from: "views/*.pug", // ['src/views/*.pug','src/views/auth/*.pug']
    to: "html/"
})

Package Sidebar

Install

npm i gulp-query-pug

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

4.74 kB

Total Files

4

Last publish

Collaborators

  • nurieff