Skip to content

dotcore64/gulp-html2pug

Folders and files

NameName
Last commit message
Last commit date
May 1, 2024
May 30, 2022
Jun 2, 2023
Oct 31, 2021
Nov 1, 2021
Nov 4, 2021
May 1, 2024
Nov 4, 2021
Nov 4, 2021
Apr 18, 2016
Feb 1, 2023
Mar 1, 2025
Mar 1, 2025

Repository files navigation

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).