From e7bc5246987c5ac30995308595680ac280ada75b Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:13:48 +0530 Subject: Fixed the issue with production and development build file names. --- config/webpack/utils/build-file.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config/webpack/utils') diff --git a/config/webpack/utils/build-file.js b/config/webpack/utils/build-file.js index 9a0ae66..6d8fc85 100644 --- a/config/webpack/utils/build-file.js +++ b/config/webpack/utils/build-file.js @@ -4,12 +4,11 @@ module.exports.getFileName = (fileName, prefix, justHash = false) => { let hash = crypto .createHash("md5") .update(`${prefix}-${fileName}`) - .digest("hex"); + .digest("hex").substring(16); if (production) { return hash; } else { - hash = hash.substring(16); if (justHash) { return hash; } else { -- cgit v1.2.3