serve fonts locally via fontsource (#1091)

* [fix] serve fonts locally via fontsource (#1077)

* fix vscode extension build

Co-authored-by: zfgrnzfsberire <noreply@github.com>
This commit is contained in:
Daniel Molkentin 2022-12-31 00:56:33 +01:00 committed by GitHub
parent b74a6d71f1
commit 065c3ddc4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 48 additions and 96 deletions

View file

@ -41,6 +41,10 @@ async function main() {
define: {
'process.env.NODE_ENV': '"production"',
},
loader: {
'.woff2': 'dataurl',
'.woff': 'dataurl',
},
})
jslog(`${pkg.name}: Build completed.`)

View file

@ -38,6 +38,10 @@ async function main() {
target: 'es6',
jsxFactory: 'React.createElement',
jsxFragment: 'React.Fragment',
loader: {
'.woff2': 'dataurl',
'.woff': 'dataurl',
},
define: {
'process.env.NODE_ENV': '"production"',
},

View file

@ -55,6 +55,10 @@ async function main() {
},
tsconfig: './tsconfig.json',
external: ['vscode'],
loader: {
'.woff2': 'dataurl',
'.woff': 'dataurl',
},
})
jslog(`Built package.`)
} catch (e) {