Minor: add hash for filename and chunkFilename in webpack prod config (#14620)

* Minor: add hash for fileName and chunkFilename in webpack prod config

* Address comment

Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>

---------

Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
This commit is contained in:
Sachin Chaurasiya 2024-01-08 19:23:23 +05:30 committed by GitHub
parent 3710113b8f
commit c1d6a44cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,8 +33,8 @@ module.exports = {
// Output configuration // Output configuration
output: { output: {
path: outputPath, path: outputPath,
filename: 'openmetadata.bundle.js', filename: 'openmetadata.[hash].js',
chunkFilename: '[name].[contenthash].js', chunkFilename: '[name].[hash].js',
publicPath: '/', // Ensures bundle is served from absolute path as opposed to relative publicPath: '/', // Ensures bundle is served from absolute path as opposed to relative
}, },