From dd3be3e3ed1cfebd46f6cac9e74a82083ff94c46 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Thu, 10 Aug 2023 13:01:51 -0400 Subject: [PATCH] MM-41813 Fix path to fonts loaded by plugin --- 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 271b98fd2..51a66d168 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,