gulp-yhtml

1.0.1 • Public • Published

gulp-content-includer

a plugin for gulp.js to include files

Installation

npm install gulp-utf8-convert

Options

includerReg: RegExp of the include expression

Type: RegExp

baseSrc: basedir of the source

Type: String

deepConcat concat content recursive

Type: Boolean default : false

Usage

var gulp = require('gulp');
var contentInclude = require('gulp-content-includer');
 
gulp.task('concat',function() {
    gulp.src("./content.html")
        .pipe(contentInclude({
            includerReg:/<!\-\-include\s+"([^"]+)"\-\->/g
        }))
        .pipe(gulp.dest('./'));
});

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-yhtml

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

14.3 kB

Total Files

3

Last publish

Collaborators

  • yumyfung