feat: now webpack filename are hashed

This commit is contained in:
Palash gupta 2022-02-10 16:37:14 +05:30
parent 9bf37b391e
commit 828bd3bac6
No known key found for this signature in database
GPG Key ID: 8FD05AE6F9150AD6

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'],