Reduce size of Katex bundle

Only load woff2 fonts instead of including all fallback font types in the bundle
This commit is contained in:
Matt Bierner
2021-03-10 19:56:46 -08:00
parent da3cbe74dc
commit 9b2ee7fb7d
5 changed files with 16 additions and 3 deletions

View File

@@ -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: {