Skip to content

Commit

Permalink
Merge pull request mattermost-community#4852 from mattermost/MM-41813…
Browse files Browse the repository at this point in the history
…_fix-font-urls

MM-41813 Fix path to fonts loaded by plugin
  • Loading branch information
sbishel authored Aug 10, 2023
2 parents 3625c53 + dd3be3e commit 4038d84
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mattermost-plugin/webapp/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4038d84

Please sign in to comment.