Skip to content

Commit

Permalink
Added destinct $uri template parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Radiergummi authored May 11, 2018
1 parent 579ab84 commit 63eae1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function getter(options) {
' font-family: \'$family\';',
' font-style: $style;',
' font-weight: $weight;',
' src: url($name)' + format + ';',
' src: url($uri)' + format + ';',
' unicode-range: $range;',
'}'
].join('\n');
Expand All @@ -287,7 +287,8 @@ function getter(options) {
);

function makeFontFace(request) {
request.name = path.posix.join(
request.name = path.posix.join(options.fontsDir, request.name);
request.uri = path.posix.join(
options.relativePaths ? path.posix.relative(options.cssDir, options.fontsDir) : options.fontsDir,
request.name
);
Expand Down

0 comments on commit 63eae1e

Please sign in to comment.