Skip to content

Commit 8abc7cd

Browse files
committed
Only inject Inter fonts to HtmlWebpackPlugin
1 parent 87806b8 commit 8abc7cd

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/vector/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
} %>
6060

6161
</head>
62-
63-
64-
6562
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.js.find(entry => entry.includes("indexeddb-worker.js")) %>">
6663
<noscript>Sorry, Element requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
6764
<section id="matrixchat" style="height: 100%; overflow: auto;" class="notranslate"></section>

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ module.exports = (env, argv) => {
388388
}),
389389

390390
new HtmlWebpackInjectPreload({
391-
files: [{ match: /.*\.(woff2?|ttf|eot)$/ }],
391+
files: [{ match: /.*Inter.*\.woff2?$/ }],
392392
}),
393393

394394
...additionalPlugins,

0 commit comments

Comments
 (0)