Skip to content

Commit 54ec21a

Browse files
authored
chore: fix font-face generation on windows (#12153)
1 parent c1c74f2 commit 54ec21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/base/lib/css-processors/css-processor-font-face.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const themeBaseFile = fileURLToPath(import.meta.resolve("@sap-theming/theming-ba
4848

4949
const config = {
5050
stdin: {
51-
contents: `@import "${themeBaseFile}";`,
51+
contents: `@import ${JSON.stringify(themeBaseFile)};`, // windows paths contain a backslash which has to be escaped because this will be treated as a string
5252
resolveDir: './',
5353
sourcefile: 'virtual-font-face.css',
5454
loader: 'css',

0 commit comments

Comments
 (0)