1.3.1 • Published 4 years ago

gulp-anyreplace v1.3.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

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.

1.3.1

4 years ago

1.2.1

4 years ago

1.1.2

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago