Skip to content

Commit

Permalink
replace path
Browse files Browse the repository at this point in the history
replace path
  • Loading branch information
a-jie committed Jun 18, 2018
1 parent b63c9ff commit 2abd64c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css/app.d72c79d8.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/app.1be112c5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 2abd64c

Please sign in to comment.