mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toolkit: Resolve external fonts when Grafana is served from a sub path(#35352)
This commit is contained in:
parent
1f5a28ec63
commit
044acf727b
@ -160,7 +160,8 @@ export const getFileLoaders = () => {
|
|||||||
test: /\.(woff|woff2|eot|ttf|otf)(\?v=\d+\.\d+\.\d+)?$/,
|
test: /\.(woff|woff2|eot|ttf|otf)(\?v=\d+\.\d+\.\d+)?$/,
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
options: {
|
options: {
|
||||||
publicPath: `/public/plugins/${getPluginId()}/fonts`,
|
// Keep publicPath relative for host.com/grafana/ deployments
|
||||||
|
publicPath: `public/plugins/${getPluginId()}/fonts`,
|
||||||
outputPath: 'fonts',
|
outputPath: 'fonts',
|
||||||
name: '[name].[ext]',
|
name: '[name].[ext]',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user