diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-06-03 13:13:48 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-06-03 13:13:48 +0530 |
| commit | e7bc5246987c5ac30995308595680ac280ada75b (patch) | |
| tree | daace45500c8ebce4c62ba12228b1b0fb742d241 | |
| parent | a38b8ca3c6146c2db03167d6ff94e445d756a202 (diff) | |
| download | banglar-bhumi-utils-e7bc5246987c5ac30995308595680ac280ada75b.tar.gz banglar-bhumi-utils-e7bc5246987c5ac30995308595680ac280ada75b.zip | |
Fixed the issue with production and development build file names.
| -rw-r--r-- | config/webpack/utils/build-file.js | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |
