mirror of
https://github.com/mattermost/focalboard.git
synced 2025-04-01 21:04:25 +02:00
Merge pull request #4852 from mattermost/MM-41813_fix-font-urls
MM-41813 Fix path to fonts loaded by plugin
This commit is contained in:
commit
4038d8471e
@ -112,13 +112,21 @@ const config = {
|
|||||||
exclude: [/node_modules/],
|
exclude: [/node_modules/],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(png|eot|tiff|svg|woff2|woff|ttf|jpg|gif)$/,
|
test: /\.(png|eot|tiff|svg|ttf|jpg|gif)$/,
|
||||||
type: 'asset/resource',
|
type: 'asset/resource',
|
||||||
generator: {
|
generator: {
|
||||||
filename: '[name][ext]',
|
filename: '[name][ext]',
|
||||||
publicPath: TARGET_IS_PRODUCT ? undefined : '/static/',
|
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,
|
devtool,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user