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:
parent
b74a6d71f1
commit
065c3ddc4a
10 changed files with 48 additions and 96 deletions
|
@ -41,6 +41,10 @@ async function main() {
|
|||
define: {
|
||||
'process.env.NODE_ENV': '"production"',
|
||||
},
|
||||
loader: {
|
||||
'.woff2': 'dataurl',
|
||||
'.woff': 'dataurl',
|
||||
},
|
||||
})
|
||||
|
||||
jslog(`✔ ${pkg.name}: Build completed.`)
|
||||
|
|
|
@ -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"',
|
||||
},
|
||||
|
|
|
@ -55,6 +55,10 @@ async function main() {
|
|||
},
|
||||
tsconfig: './tsconfig.json',
|
||||
external: ['vscode'],
|
||||
loader: {
|
||||
'.woff2': 'dataurl',
|
||||
'.woff': 'dataurl',
|
||||
},
|
||||
})
|
||||
jslog(`Built package.`)
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue