mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 17:35:57 +08:00
feat: now webpack filename are hashed
This commit is contained in:
parent
9bf37b391e
commit
828bd3bac6
@ -34,8 +34,8 @@ const plugins = [
|
|||||||
path: resolve(__dirname, './build/css'),
|
path: resolve(__dirname, './build/css'),
|
||||||
// Public path of the CSS resources. This prefix is removed from the href
|
// Public path of the CSS resources. This prefix is removed from the href
|
||||||
publicPath: resolve(__dirname, './public/css'),
|
publicPath: resolve(__dirname, './public/css'),
|
||||||
fonts: true
|
fonts: true,
|
||||||
})
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (process.env.BUNDLE_ANALYSER === 'true') {
|
if (process.env.BUNDLE_ANALYSER === 'true') {
|
||||||
@ -48,6 +48,7 @@ const config = {
|
|||||||
output: {
|
output: {
|
||||||
path: resolve(__dirname, './build'),
|
path: resolve(__dirname, './build'),
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
|
filename: '[name].[contenthash].js',
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.ts', '.tsx', '.js', '.jsx'],
|
extensions: ['.ts', '.tsx', '.js', '.jsx'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user