Login: change webpack rule for chunk name
This commit is contained in:
parent
6945694b2b
commit
303bd8b2ac
@ -109,6 +109,12 @@ module.exports = {
|
|||||||
// Modify the file loader rule to ignore *.svg, since we have it handled now.
|
// Modify the file loader rule to ignore *.svg, since we have it handled now.
|
||||||
fileLoaderRule.exclude = /\.svg$/i;
|
fileLoaderRule.exclude = /\.svg$/i;
|
||||||
|
|
||||||
|
if (config?.output?.filename)
|
||||||
|
config.output.filename = config.output.filename?.replace(
|
||||||
|
"[chunkhash]",
|
||||||
|
`[contenthash]`,
|
||||||
|
);
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
...nextConfig,
|
...nextConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user