A local-first personal finance app
Bundle only the variable font version of Inter (#1213)
Jed Fox38b8000d2a87
diff --git a/packages/desktop-client/package.json b/packages/desktop-client/package.jsonindex 952c5dcc18..549ad923d4 100644--- a/packages/desktop-client/package.json+++ b/packages/desktop-client/package.json@@ -50,6 +50,7 @@"react-virtualized-auto-sizer": "^1.0.2","redux": "^4.0.5","redux-thunk": "^2.3.0",+ "sass": "^1.63.6","victory": "^36.6.8","webpack-bundle-analyzer": "^4.9.0"},diff --git a/packages/desktop-client/src/fonts.scss b/packages/desktop-client/src/fonts.scssnew file mode 100644index 0000000000..b36437aff0--- /dev/null+++ b/packages/desktop-client/src/fonts.scss@@ -0,0 +1,2 @@+@use '~inter-ui/variable';+@include variable.all;diff --git a/packages/desktop-client/src/index.tsx b/packages/desktop-client/src/index.tsxindex 30cd6247ac..4140c134e6 100644--- a/packages/desktop-client/src/index.tsx+++ b/packages/desktop-client/src/index.tsx@@ -5,7 +5,7 @@ import './browser-preload';// A hack for now: this makes sure it's appended before glamorimport '@reach/listbox/styles.css';-import 'inter-ui/inter.css';+import './fonts.scss';import React from 'react';import { Provider } from 'react-redux';diff --git a/upcoming-release-notes/1213.md b/upcoming-release-notes/1213.mdnew file mode 100644index 0000000000..859197afea--- /dev/null+++ b/upcoming-release-notes/1213.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [j-f1]+---++Bundle only the variable font version of the UI fontdiff --git a/yarn.lock b/yarn.lockindex e846cfcd26..588e148eba 100644--- a/yarn.lock+++ b/yarn.lock@@ -113,6 +113,7 @@ __metadata:react-virtualized-auto-sizer: ^1.0.2redux: ^4.0.5redux-thunk: ^2.3.0+ sass: ^1.63.6victory: ^36.6.8webpack-bundle-analyzer: ^4.9.0languageName: unknown@@ -6311,7 +6312,7 @@ __metadata:languageName: nodelinkType: hard-"chokidar@npm:^3.4.2, chokidar@npm:^3.5.3":+"chokidar@npm:>=3.0.0 <4.0.0, chokidar@npm:^3.4.2, chokidar@npm:^3.5.3":version: 3.5.3resolution: "chokidar@npm:3.5.3"dependencies:@@ -10315,6 +10316,13 @@ __metadata:languageName: nodelinkType: hard+"immutable@npm:^4.0.0":+ version: 4.3.0+ resolution: "immutable@npm:4.3.0"+ checksum: bbd7ea99e2752e053323543d6ff1cc71a4b4614fa6121f321ca766db2bd2092f3f1e0a90784c5431350b7344a4f792fa002eac227062d59b9377b6c09063b58b+ languageName: node+ linkType: hard+"import-fresh@npm:^3.0.0, import-fresh@npm:^3.1.0, import-fresh@npm:^3.2.1":version: 3.3.0resolution: "import-fresh@npm:3.3.0"@@ -16028,6 +16036,19 @@ __metadata:languageName: nodelinkType: hard+"sass@npm:^1.63.6":+ version: 1.63.6+ resolution: "sass@npm:1.63.6"+ dependencies:+ chokidar: ">=3.0.0 <4.0.0"+ immutable: ^4.0.0+ source-map-js: ">=0.6.2 <2.0.0"+ bin:+ sass: sass.js+ checksum: 3372319904658eeafaf78a09a6fcb3368a68e6d76fe3c43c2d009f4f72e475ab22b82ef483ef5c00fcda3ab00066846c0bd88c36b42771b855f6ab80c7eda541+ languageName: node+ linkType: hard+"sax@npm:^1.2.4, sax@npm:~1.2.4":version: 1.2.4resolution: "sax@npm:1.2.4"@@ -16478,7 +16499,7 @@ __metadata:languageName: nodelinkType: hard-"source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2":+"source-map-js@npm:>=0.6.2 <2.0.0, source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2":version: 1.0.2resolution: "source-map-js@npm:1.0.2"checksum: c049a7fc4deb9a7e9b481ae3d424cc793cb4845daa690bc5a05d428bf41bf231ced49b4cf0c9e77f9d42fdb3d20d6187619fc586605f5eabe995a316da8d377c