Skip to content

Commit

Permalink
Merge pull request #4853 from mattermost/cp-4852
Browse files Browse the repository at this point in the history
Merge pull request #4852 from mattermost/MM-41813_fix-font-urls
  • Loading branch information
sbishel authored Aug 10, 2023
2 parents b8a5130 + bba1f4b commit 134d171
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 134d171

Please sign in to comment.