0.0.5 • Published 9 years ago

gulp-document-write v0.0.5

Weekly downloads
10
License
-
Repository
-
Last release
9 years ago

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'));
});
0.0.5

9 years ago

0.0.4

9 years ago

0.0.1

9 years ago