gulp-anyreplace

1.3.1 • Public • Published

gulp-anyreplace

gulp replace anything what you want.

Greenkeeper badge npm npm Build Status GitHub issues GitHub contributors David David Dev NPM

Install

npm i gulp-anyreplace --save-dev

Usage

const anyReplace = require('gulp-anyreplace')
 
gulp.task('templates', function(){
  gulp.src(['/**/*', '!node_modules/**/*', '!.tea/**/*'])
    .pipe(anyReplace((content)=> {
        maps.forEach(item => {
            content = content.replace(item, `${cdn}${item}`)
        })
        return content;
    }))
    .pipe(gulp.dest('../xxxx-build/'));
});
 

License

Copyright (c) 2020 Terry Cai. Licensed under the Apache-2.0 license.

Readme

Keywords

Package Sidebar

Install

npm i gulp-anyreplace

Weekly Downloads

1

Version

1.3.1

License

Apache-2.0

Unpacked Size

16.2 kB

Total Files

8

Last publish

Collaborators

  • icai