gmf

gulp-modify-file

Gulp plugin allow modify file in .pipe

Showing:

Popularity

Downloads/wk

11.1K

GitHub Stars

6

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

8.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100