Login: change webpack rule for chunk name

This commit is contained in:
Timofey Boyko 2024-08-30 11:45:45 +03:00
parent 6945694b2b
commit 303bd8b2ac

View File

@ -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,