Bundle only the variable font version of Inter (#1213)

This commit is contained in:
Jed Fox
2023-06-28 07:02:59 -04:00
committed by GitHub
parent d5387c5d46
commit 38b8000d2a
5 changed files with 33 additions and 3 deletions

View File

@@ -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"
},

View File

@@ -0,0 +1,2 @@
@use '~inter-ui/variable';
@include variable.all;

View File

@@ -5,7 +5,7 @@ import './browser-preload';
// A hack for now: this makes sure it's appended before glamor
import '@reach/listbox/styles.css';
import 'inter-ui/inter.css';
import './fonts.scss';
import React from 'react';
import { Provider } from 'react-redux';

View File

@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [j-f1]
---
Bundle only the variable font version of the UI font

View File

@@ -113,6 +113,7 @@ __metadata:
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
languageName: unknown
@@ -6311,7 +6312,7 @@ __metadata:
languageName: node
linkType: 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.3
resolution: "chokidar@npm:3.5.3"
dependencies:
@@ -10315,6 +10316,13 @@ __metadata:
languageName: node
linkType: 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.0
resolution: "import-fresh@npm:3.3.0"
@@ -16028,6 +16036,19 @@ __metadata:
languageName: node
linkType: 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.4
resolution: "sax@npm:1.2.4"
@@ -16478,7 +16499,7 @@ __metadata:
languageName: node
linkType: 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.2
resolution: "source-map-js@npm:1.0.2"
checksum: c049a7fc4deb9a7e9b481ae3d424cc793cb4845daa690bc5a05d428bf41bf231ced49b4cf0c9e77f9d42fdb3d20d6187619fc586605f5eabe995a316da8d377c