1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #2790 from thornbill/fix-cache-config

Fix webpack config for bundle caching
This commit is contained in:
Bill Thornton 2021-07-15 10:03:03 -04:00 committed by GitHub
commit 8eb3299491
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: ''
},