a gulp plugin to replace the resource url,gulpplugin
npm install gulp-url-replaceshell
npm install gulp-url-replace --save-dev
`$3
`js
var gulp = require('gulp');
var replace = require('gulp-url-replace')
gulp.task('move', function(){
gulp.src('./*.html')
.pipe(replace({
'lib/': '<%= stHost %>/node/public/lib/',
'img/':'<%= stHost %>/node/public/img/',
'css/': '<%= stHost %>/node/public/css/',
'js/': '<%= stHost %>/node/public/js/',
}))
.pipe(gulp.dest("../production/views/"))
})
``replace({ "oldPath":"newPath"[,"oldPath2":"newPath2",...]})#### oldPath
type: String
The string to search for
#### newPath
type: String
The string to replace the search