Skip to content

minewhat/gulp-modify-file

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp plugin allow modify file in .pipe

const gulp = require('gulp')

gulp.task('js', () => {
    const modifyFile = require('gulp-modify-file')

    return gulp
    .src('app/**/*.js')
    .pipe(modifyFile((content, path, file) => {
        const start = '(function (){\n'
        const end = '\n})()'

        return `${start}${content}${end}`
    }))
    .pipe(gulp.dest('build'))
})

About

Gulp plugin allow modify file in .pipe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%