mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-01-15 16:33:35 -03:00
Fix theme asset references
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user