mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -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+)?$/,
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
publicPath: `/public/plugins/${getPluginId()}/fonts`,
|
||||
// Keep publicPath relative for host.com/grafana/ deployments
|
||||
publicPath: `public/plugins/${getPluginId()}/fonts`,
|
||||
outputPath: 'fonts',
|
||||
name: '[name].[ext]',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user