mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-23 05:59:54 +00:00
Add serviceworker webpack entry point
This commit is contained in:
parent
f7f546f15f
commit
c55d7b68eb
@ -110,7 +110,9 @@ const config = {
|
||||
})
|
||||
],
|
||||
output: {
|
||||
filename: '[name].bundle.js',
|
||||
filename: pathData => (
|
||||
pathData.chunk.name === 'serviceworker' ? '[name].js' : '[name].bundle.js'
|
||||
),
|
||||
chunkFilename: '[name].[contenthash].chunk.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
publicPath: ''
|
||||
|
@ -3,5 +3,8 @@ const { merge } = require('webpack-merge');
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: 'production',
|
||||
entry: { 'main.jellyfin': './index.jsx' }
|
||||
entry: {
|
||||
'main.jellyfin': './index.jsx',
|
||||
'serviceworker': './serviceworker.js'
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user