mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix theme asset references
This commit is contained in:
parent
fe6b43d586
commit
1fdce1615b
1 changed files with 12 additions and 1 deletions
|
@ -135,6 +135,12 @@ const config = {
|
|||
pathData.chunk.name === 'serviceworker' ? '[name].js' : '[name].bundle.js'
|
||||
),
|
||||
chunkFilename: '[name].[contenthash].chunk.js',
|
||||
assetModuleFilename: pathData => {
|
||||
if (pathData.filename.startsWith('assets/') || pathData.filename.startsWith('themes/')) {
|
||||
return '[path][base][query]';
|
||||
}
|
||||
return '[hash][ext][query]';
|
||||
},
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
publicPath: ''
|
||||
},
|
||||
|
@ -317,7 +323,12 @@ const config = {
|
|||
path.resolve(__dirname, 'src/themes/')
|
||||
],
|
||||
use: [
|
||||
MiniCssExtractPlugin.loader,
|
||||
{
|
||||
loader: MiniCssExtractPlugin.loader,
|
||||
options: {
|
||||
publicPath: '/'
|
||||
}
|
||||
},
|
||||
'css-loader',
|
||||
{
|
||||
loader: 'postcss-loader',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue