mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
Reduce size of Katex bundle
Only load woff2 fonts instead of including all fallback font types in the bundle
This commit is contained in:
@@ -21,9 +21,13 @@ module.exports = {
|
||||
use: ['style-loader', 'css-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.(woff|woff2|eot|ttf|otf)$/i,
|
||||
test: /\.(woff2)$/i,
|
||||
use: ['url-loader?limit=100000']
|
||||
},
|
||||
{
|
||||
test: /\.(woff|eot|ttf|otf)$/i,
|
||||
use: ['null-loader']
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
|
||||
Reference in New Issue
Block a user