gulp-displace
v1.0.4
Published
find string displace
Downloads
29
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