nean / gulp-pretty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@nean/gulp-pretty

This plugin uses https://github.com/jonschlinkert/pretty to format html

Install

npm i @nean/gulp-pretty

Usage

const gulp = require('gulp');
const pretty = require('@nean/gulp-pretty');

gulp.task('templates', () => {
    return gulp.src('templates/**/*.html')
        .pipe(pretty({ocd: true}))
        .pipe(gulp.dest('dist'));
});

About


Languages

Language:JavaScript 100.0%