gulp-anyreplace
v1.3.1
Published
gulp replace anything what you want.
Downloads
5
Readme
gulp-anyreplace
gulp replace anything what you want.
Install
npm i gulp-anyreplace --save-dev
Usage
const anyReplace = require('gulp-anyreplace')
gulp.task('templates', function(){
gulp.src(['/**/*', '!node_modules/**/*', '!.tea/**/*'])
.pipe(anyReplace((content)=> {
maps.forEach(item => {
content = content.replace(item, `${cdn}${item}`)
})
return content;
}))
.pipe(gulp.dest('../xxxx-build/'));
});
License
Copyright (c) 2020 Terry Cai. Licensed under the Apache-2.0 license.