https://github.com/rodeymanager/gulp-displace
字符串替换
https://github.com/rodeymanager/gulp-displace
Last synced: 11 months ago
JSON representation
字符串替换
- Host: GitHub
- URL: https://github.com/rodeymanager/gulp-displace
- Owner: RodeyManager
- Created: 2017-04-12T11:54:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T08:31:59.000Z (over 8 years ago)
- Last Synced: 2025-06-17T19:44:34.218Z (about 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### gulp-jsminer (javascript压缩)
```
const
gulp = require('gulp'),
gulpDisplace = require('../index');
gulp.task('default', function(){
gulp.src('assets/a.txt')
.pipe(gulpDisplace({ search: /(and)/gi, result: function(m, $1){
console.log(m, $1);
return '+';
} }))
.pipe(gulp.dest('dist'));
});
```
## options
`search` String | RegExp;
`result` String | Function
### Listen
ISC