gulp-document-write

0.0.5 • Public • Published

gulp-document-write

Merge script files by document.write use gulp.

Features

  1. Support javascript comment.
  2. Support nested document.write. Process recursively.

Usage

see example gulpfile

var gulp = require('gulp'),
    documentWrite = require('gulp-document-write');
 
gulp.task('default', function() {
    gulp.src('./web/**/*.js')
        .pipe(documentWrite({
            context: './web', // Specify webroot if document.write absolute path. Default: process.cwd()
            relativeTo: './web' // Specify relative to which path. Default: the file.path
        }))
        .pipe(gulp.dest('./build'));
});

/gulp-document-write/

    Package Sidebar

    Install

    npm i gulp-document-write

    Weekly Downloads

    2

    Version

    0.0.5

    License

    none

    Last publish

    Collaborators

    • javey