gulp-html2pug
v7.0.1
Published
Gulp plugin to convert html files to pug
Readme
gulp-html2pug
Convert html files to pug
Install
$ npm install --save-dev gulp-html2pugUsage
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).
