Fix: Inline external CSS files. Previous builders had issues with this; they couldn't resolve any URLs in the external files, such as font files.

This commit is contained in:
Sercan Yemen 2024-06-09 11:02:39 +03:00
parent f35dc406a5
commit 6e224c35ea
4 changed files with 6 additions and 7 deletions

View File

@ -45,6 +45,8 @@
"includePaths": ["src/@fuse/styles"]
},
"styles": [
"src/styles/splash-screen.css",
"src/styles/inter.css",
"src/@fuse/styles/tailwind.scss",
"src/@fuse/styles/themes.scss",
"src/styles/vendors.scss",

View File

@ -23,9 +23,7 @@
<link rel="icon" type="image/png" href="favicon-32x32.png" />
<!-- Fonts -->
<link href="fonts/inter/inter.css" rel="stylesheet" />
<link href="https://fonts.gstatic.com" rel="preconnect" />
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap"
rel="stylesheet"
@ -36,9 +34,6 @@
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<!-- Splash screen styles -->
<link href="styles/splash-screen.css" rel="stylesheet" />
</head>
<body>

View File

@ -4,7 +4,8 @@
font-display: swap;
font-style: normal;
font-named-instance: 'Regular';
src: url("Inter-roman.var.woff2?v=3.18") format("woff2");
src: url('../../public/fonts/inter/Inter-roman.var.woff2?v=3.18')
format('woff2');
}
@font-face {
@ -13,5 +14,6 @@
font-display: swap;
font-style: italic;
font-named-instance: 'Italic';
src: url("Inter-italic.var.woff2?v=3.18") format("woff2");
src: url('../../public/fonts/inter/Inter-italic.var.woff2?v=3.18')
format('woff2');
}