Merge pull request #701 from palash-signoz/filename-hashed

feat: now webpack filename are hashed
This commit is contained in:
Ankit Nayan 2022-02-11 16:05:18 +05:30 committed by GitHub
commit 43983bc643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,8 +34,8 @@ const plugins = [
path: resolve(__dirname, './build/css'),
// Public path of the CSS resources. This prefix is removed from the href
publicPath: resolve(__dirname, './public/css'),
fonts: true
})
fonts: true,
}),
];
if (process.env.BUNDLE_ANALYSER === 'true') {
@ -48,6 +48,7 @@ const config = {
output: {
path: resolve(__dirname, './build'),
publicPath: '/',
filename: '[name].[contenthash].js',
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],