mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-01-15 16:33:35 -03:00
Fix webpack config for bundle caching
This commit is contained in:
@@ -33,7 +33,9 @@ module.exports = {
|
||||
new CleanWebpackPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
filename: 'index.html',
|
||||
template: 'index.html'
|
||||
template: 'index.html',
|
||||
// Append file hashes to bundle urls for cache busting
|
||||
hash: true
|
||||
}),
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
@@ -75,7 +77,8 @@ module.exports = {
|
||||
})
|
||||
],
|
||||
output: {
|
||||
filename: '[name].[contenthash].bundle.js',
|
||||
filename: '[name].bundle.js',
|
||||
chunkFilename: '[name].[contenthash].chunk.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
publicPath: ''
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user