gulp-html2pug

5.1.1 • Public • Published

gulp-html2pug

Build Status npm package Coverage Status

Convert html files to pug

Install

$ npm install --save-dev gulp-html2pug

Usage

Convert index.html to pug/index.pug:

import gulp from 'gulp';
import html2pug from 'gulp-html2pug';

gulp.task('pug', () => 
  gulp.src('index.html')
    .pipe(html2pug(/* options for html2pug such as { fragment: true } */))
    .pipe(gulp.dest('pug'))
);

License

See the LICENSE file for license rights and limitations (MIT).

Package Sidebar

Install

npm i gulp-html2pug

Weekly Downloads

27

Version

5.1.1

License

MIT

Unpacked Size

6.63 kB

Total Files

5

Last publish

Collaborators

  • perrin4869
  • 20lives