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

https://github.com/rodeymanager/gulp-displace

字符串替换
https://github.com/rodeymanager/gulp-displace

Last synced: 11 months ago
JSON representation

字符串替换

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