diff --git a/packages/desktop-client/package.json b/packages/desktop-client/package.json index f36a447cb90..7e02a9ae662 100644 --- a/packages/desktop-client/package.json +++ b/packages/desktop-client/package.json @@ -66,7 +66,7 @@ "terser-webpack-plugin": "^5.3.9", "uuid": "^9.0.0", "victory": "^36.6.8", - "vite": "^5.0.7", + "vite": "^5.0.10", "vite-tsconfig-paths": "^4.2.2", "vitest": "^1.0.4", "webpack-bundle-analyzer": "^4.9.1", diff --git a/packages/desktop-client/src/fonts.scss b/packages/desktop-client/src/fonts.scss index 2536c121307..dba3274d484 100644 --- a/packages/desktop-client/src/fonts.scss +++ b/packages/desktop-client/src/fonts.scss @@ -1,2 +1,4 @@ -@use 'inter-ui/variable'; +@use 'inter-ui/variable' with ( + $inter-font-path: '../../../node_modules/inter-ui/Inter (web)' +); @include variable.default; diff --git a/packages/desktop-client/vite.config.mts b/packages/desktop-client/vite.config.mts index fe5e14cdb3c..8b90ff781ac 100644 --- a/packages/desktop-client/vite.config.mts +++ b/packages/desktop-client/vite.config.mts @@ -117,7 +117,7 @@ export default defineConfig(async ({ mode }) => { if (/png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType)) { extType = 'img'; } else if (/woff|woff2/.test(extType)) { - extType = 'css'; + extType = 'media'; } return `static/${extType}/[name]-[hash][extname]`; }, diff --git a/yarn.lock b/yarn.lock index 80c1da21d0e..7aa7174e5ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -117,7 +117,7 @@ __metadata: terser-webpack-plugin: "npm:^5.3.9" uuid: "npm:^9.0.0" victory: "npm:^36.6.8" - vite: "npm:^5.0.7" + vite: "npm:^5.0.10" vite-tsconfig-paths: "npm:^4.2.2" vitest: "npm:^1.0.4" webpack-bundle-analyzer: "npm:^4.9.1" @@ -17126,9 +17126,9 @@ __metadata: languageName: node linkType: hard -"vite@npm:^5.0.0, vite@npm:^5.0.7": - version: 5.0.8 - resolution: "vite@npm:5.0.8" +"vite@npm:^5.0.0, vite@npm:^5.0.10": + version: 5.0.10 + resolution: "vite@npm:5.0.10" dependencies: esbuild: "npm:^0.19.3" fsevents: "npm:~2.3.3" @@ -17162,7 +17162,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: ea36e34fa45401d8e29317c3355f4d7081df09b412578bd7b6a26d44bccace9d130625f7f317a3cbc20ad2aadc5881d01d1508e8d9e36060ae44d974f505dd7e + checksum: 5421e9c7f8cf3152eace9a8b528269141635f367e5dc63c5f1fe2712a766d9757f8197733cf3f28be590afdd520130d38de90c955e6dba6edfa6f9056c1e5ea7 languageName: node linkType: hard