mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-09 22:55:12 +00:00
Only inject Inter fonts to HtmlWebpackPlugin
This commit is contained in:
parent
87806b8a67
commit
8abc7cd87c
2 changed files with 1 additions and 4 deletions
|
@ -59,9 +59,6 @@
|
||||||
} %>
|
} %>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.js.find(entry => entry.includes("indexeddb-worker.js")) %>">
|
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.js.find(entry => entry.includes("indexeddb-worker.js")) %>">
|
||||||
<noscript>Sorry, Element requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
|
<noscript>Sorry, Element requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
|
||||||
<section id="matrixchat" style="height: 100%; overflow: auto;" class="notranslate"></section>
|
<section id="matrixchat" style="height: 100%; overflow: auto;" class="notranslate"></section>
|
||||||
|
|
|
@ -388,7 +388,7 @@ module.exports = (env, argv) => {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
new HtmlWebpackInjectPreload({
|
new HtmlWebpackInjectPreload({
|
||||||
files: [{ match: /.*\.(woff2?|ttf|eot)$/ }],
|
files: [{ match: /.*Inter.*\.woff2?$/ }],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
...additionalPlugins,
|
...additionalPlugins,
|
||||||
|
|
Loading…
Reference in a new issue