Skip to content

Commit f61bf52

Browse files
committed
webui: don't suppress 404 (fonts)
1 parent 8ec7984 commit f61bf52

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tools/server/webui/vite.config.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,8 @@ function llamaCppBuildPlugin() {
4444

4545
let content = readFileSync(indexPath, 'utf-8');
4646

47-
// Remove non-embedded font-URLs of KaTeX.
48-
content = content.replace(
49-
new RegExp(/src:(?:,?url\(.\/KaTeX_[^)]+\) format\("[a-z0-9]+"\))+/, 'g'),
50-
''
51-
);
47+
// A non-embedded KaTeX-font (/src:(?:,?url\(.\/KaTeX_[^)]+\) format\("[a-z0-9]+"\))+/)
48+
// will be mentionend by a 404 error, see MAX_ASSET_SIZE.
5249

5350
// Remove embedded ttf- and woff-fonts.
5451
// See ./node_modules/katex/src/styles/fonts.scss.

0 commit comments

Comments
 (0)