From 8d05d8481a86d1d0432a5cf8a555be53dc0dfe5d Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 10 Jun 2021 13:02:21 +0100 Subject: [PATCH] Preload only `woff2` fonts All of our supported browsers understand `woff2`, so there's no need to make everyone preload the older `woff` as well. --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 07fcb4f67..64972ed4f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -431,7 +431,7 @@ module.exports = (env, argv) => { }), new HtmlWebpackInjectPreload({ - files: [{ match: /.*Inter.*\.woff2?$/ }], + files: [{ match: /.*Inter.*\.woff2$/ }], }), ...additionalPlugins,