Skip to content
Open
Changes from 1 commit
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 lib/postcss-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function replaceIconFontDeclarations (fontName, postCssRoot, svgPaths) {
*/
function addFontDeclaration (fontName, postCssRoot, enforcedSvgHeight, svgPaths) {
// The options are passed as a query string so we use the relative svg paths to reduce the path length per file
const options = { svgs: svgPaths.relative, name: fontName, enforcedSvgHeight: enforcedSvgHeight };
const options = { svgs: svgPaths.resolved, name: fontName, enforcedSvgHeight: enforcedSvgHeight };
Copy link
Owner

@jantimon jantimon Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should use only relative paths here.. otherwise webpack won't be able to share caches

// Resolve the icon font plugin directoy in case the iconfont-webpack-plugin is used as a sub dependency
const iconFontPluginDirectory = path.dirname(require.resolve('../'));
// Use paths always with slash also for win32 to prevent an issues with resolving the placeholder on windows
Expand Down