Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Make sure the htmlRelativeFontPath is correct #344

Merged
merged 1 commit into from
Jul 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/webfont.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ module.exports = function(grunt) {

// Prepare relative font paths for injection into @font-face refs in HTML
var relativeRe = new RegExp(_s.escapeRegExp(o.relativeFontPath), 'g');
var htmlRelativeFontPath = normalizePath(path.relative(o.destHtml, o.relativeFontPath));
var htmlRelativeFontPath = normalizePath(path.relative(o.destHtml, o.dest));
var _fontSrc1 = o.fontSrc1.replace(relativeRe, htmlRelativeFontPath);
var _fontSrc2 = o.fontSrc2.replace(relativeRe, htmlRelativeFontPath);

Expand Down