mirror of
https://github.com/caojiezi2003/clock-shop.git
synced 2024-11-10 05:29:46 +00:00
replace path
replace path
This commit is contained in:
parent
b63c9ff774
commit
2abd64c041
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@ vfs.src(['./dist/css/*.css'])
|
|||||||
.pipe(map(function (file, cb) {
|
.pipe(map(function (file, cb) {
|
||||||
var content = file.contents;
|
var content = file.contents;
|
||||||
content = content.toString('utf8');
|
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);
|
file.contents = Buffer.from(content);
|
||||||
|
|
||||||
cb(null, file);
|
cb(null, file);
|
||||||
@ -16,7 +16,7 @@ vfs.src(['./dist/js/*.js'])
|
|||||||
.pipe(map(function (file, cb) {
|
.pipe(map(function (file, cb) {
|
||||||
var content = file.contents;
|
var content = file.contents;
|
||||||
content = content.toString('utf8');
|
content = content.toString('utf8');
|
||||||
content = content.replace('/data.yaml', '../data.yaml');
|
content = content.replace('/data.yaml', './data.yaml');
|
||||||
file.contents = Buffer.from(content);
|
file.contents = Buffer.from(content);
|
||||||
|
|
||||||
cb(null, file);
|
cb(null, file);
|
||||||
|
Loading…
Reference in New Issue
Block a user