Skip to content

Commit

Permalink
Don't append dist host to dist config for data uri images iin config
Browse files Browse the repository at this point in the history
  • Loading branch information
beefo committed Nov 11, 2016
1 parent 8951f54 commit 7e473c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generators/app/templates/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ gulp.task('json', () => {
var distHost = options.dist.host;
for (let i = 0; i < json.items.length; i++) {
json.items[i].url = distHost + json.items[i].url;
json.items[i].icon = distHost + json.items[i].icon;
if (json.items[i].icon.indexOf('data:image') === -1) {
json.items[i].icon = distHost + json.items[i].icon;
}
}
// remove dev options
delete json.dev;
Expand Down

0 comments on commit 7e473c4

Please sign in to comment.