postcss-font-grabber
Advanced tools
Comparing version 3.0.0-alpha.3 to 3.0.0-beta.1
@@ -36,7 +36,7 @@ /// <reference types="node" /> | ||
}): string; | ||
export declare function getNewDeclarationValue({ value, oldUrl, newUrl, }: { | ||
export declare function getNewDeclarationValue({ value, oldUrl, fontRelativePath, }: { | ||
value: string; | ||
oldUrl: string; | ||
newUrl: string; | ||
fontRelativePath: string; | ||
}): string; | ||
export declare function getSubDirectoryPath(directoryPath: string, subFilePath: string): string; |
@@ -182,4 +182,5 @@ "use strict"; | ||
exports.calculateRelativePath = calculateRelativePath; | ||
function getNewDeclarationValue({ value, oldUrl, newUrl, }) { | ||
return value.replace(oldUrl, newUrl); | ||
function getNewDeclarationValue({ value, oldUrl, fontRelativePath, }) { | ||
fontRelativePath = fontRelativePath.replace(/\\/g, '/'); | ||
return value.replace(oldUrl, fontRelativePath); | ||
} | ||
@@ -186,0 +187,0 @@ exports.getNewDeclarationValue = getNewDeclarationValue; |
@@ -105,3 +105,3 @@ "use strict"; | ||
oldUrl: fontUrlString, | ||
newUrl: relativePath, | ||
fontRelativePath: relativePath, | ||
}); | ||
@@ -108,0 +108,0 @@ } |
{ | ||
"name": "postcss-font-grabber", | ||
"version": "3.0.0-alpha.3", | ||
"version": "3.0.0-beta.1", | ||
"description": "It grabs remote font files and update your CSS, just like that.", | ||
@@ -5,0 +5,0 @@ "author": "AaronJan <aaronjan@qq.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
56275
555