Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pfan123/gulp-pf-replace
- Owner: pfan123
- Created: 2015-09-21T02:14:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-25T01:38:46.000Z (over 9 years ago)
- Last Synced: 2024-10-12T15:26:23.316Z (3 months ago)
- Language: JavaScript
- Size: 527 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"));
});