# gulp-document-write **Repository Path**: javey/gulp-document-write ## Basic Information - **Project Name**: gulp-document-write - **Description**: Merge script file by document.write - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-04-28 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](https://github.com/Javey/gulp-document-write/blob/master/test/gulpfile.js) ```javascript 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')); }); ```