Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pfan123/gulp-pf-replace

gulp plugins replace text
https://github.com/pfan123/gulp-pf-replace

Last synced: about 2 months ago
JSON representation

gulp plugins replace text

Awesome Lists containing this project

README

        

# gulp-pf-replace
gulp plugins make replace text.

#usage
var replace = require("gulp-pf-replace");
##### Define replace function
function ypReplace(data){
return data.replace(/帮宝适首发/,"123456")
}


##### Define gulp task
gulp.task("replace",function(){
gulp.src("./src/*.html")
.pipe(replace(ypReplace))
.pipe(gulp.dest("./out"));
});