replace path

replace path
This commit is contained in:
a-jie 2018-06-18 09:39:52 +08:00
parent b63c9ff774
commit 2abd64c041
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ vfs.src(['./dist/css/*.css'])
.pipe(map(function (file, cb) {
var content = file.contents;
content = content.toString('utf8');
content = content.replace('/banner.jpg', '../banner.jpg').replace('/font/', '../font/')
content = content.replace('/banner.jpg', '../banner.jpg').replace(/\/font\//ig, '../font/')
file.contents = Buffer.from(content);
cb(null, file);
@ -16,7 +16,7 @@ vfs.src(['./dist/js/*.js'])
.pipe(map(function (file, cb) {
var content = file.contents;
content = content.toString('utf8');
content = content.replace('/data.yaml', '../data.yaml');
content = content.replace('/data.yaml', './data.yaml');
file.contents = Buffer.from(content);
cb(null, file);