From bba1f4b8027dddf327c60a61a9d1c59a5d98b70e Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Thu, 10 Aug 2023 12:07:44 -0600 Subject: [PATCH] Merge pull request #4852 from mattermost/MM-41813_fix-font-urls MM-41813 Fix path to fonts loaded by plugin (cherry picked from commit 4038d8471e37e0e0a4ca82f7f21b649782b48e75) --- mattermost-plugin/webapp/webpack.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mattermost-plugin/webapp/webpack.config.js b/mattermost-plugin/webapp/webpack.config.js index 271b98fd2b2..51a66d168a5 100644 --- a/mattermost-plugin/webapp/webpack.config.js +++ b/mattermost-plugin/webapp/webpack.config.js @@ -112,13 +112,21 @@ const config = { exclude: [/node_modules/], }, { - test: /\.(png|eot|tiff|svg|woff2|woff|ttf|jpg|gif)$/, + test: /\.(png|eot|tiff|svg|ttf|jpg|gif)$/, type: 'asset/resource', generator: { filename: '[name][ext]', publicPath: TARGET_IS_PRODUCT ? undefined : '/static/', } }, + { + test: /\.(woff2|woff)$/, + type: 'asset/resource', + generator: { + filename: '[name][ext]', + publicPath: TARGET_IS_PRODUCT ? undefined : '/plugins/focalboard/static/', + } + }, ], }, devtool,