webpack: Fix PatternFly font path

Copy the rule that cockpit and cockpit-podman use. Also change the
quoting, to avoid pointless diff noise. Now they are perfectly in sync.
This commit is contained in:
Martin Pitt 2020-12-17 07:36:34 +01:00 committed by Matej Marusak
parent dff4b66671
commit 539f293b7e

View file

@ -108,7 +108,7 @@ module.exports = {
loader: 'css-loader', loader: 'css-loader',
options: { options: {
sourceMap: true, sourceMap: true,
url: false url: false,
} }
}, },
{ {
@ -117,7 +117,7 @@ module.exports = {
multiple: [ multiple: [
{ {
search: /src:url\("patternfly-icons-fake-path\/pficon[^}]*/g, search: /src:url\("patternfly-icons-fake-path\/pficon[^}]*/g,
replace: "src:url('fonts/patternfly.woff')format('woff');", replace: 'src:url("../base1/fonts/patternfly.woff") format("woff");',
}, },
{ {
search: /@font-face[^}]*patternfly-fonts-fake-path[^}]*}/g, search: /@font-face[^}]*patternfly-fonts-fake-path[^}]*}/g,