Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
inc
.gitignore
README.md
content.html
footer.html
gulpfile.js
header.html
index.html
index.js
package.json

README.md

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('./'));
});
You can’t perform that action at this time.