aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/utils/filename-hash.js
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-06-03 13:09:04 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-06-03 13:09:04 +0530
commita38b8ca3c6146c2db03167d6ff94e445d756a202 (patch)
tree0d315bd68158336d4241cec75685a8b15b4c00d6 /config/webpack/utils/filename-hash.js
parent7ea487be4aaf8f3b3047e2a7b3c1da80744f258b (diff)
downloadbanglar-bhumi-utils-a38b8ca3c6146c2db03167d6ff94e445d756a202.tar.gz
banglar-bhumi-utils-a38b8ca3c6146c2db03167d6ff94e445d756a202.zip
Added captha removal and autocomplete to GRN search.
Diffstat (limited to 'config/webpack/utils/filename-hash.js')
-rw-r--r--config/webpack/utils/filename-hash.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/config/webpack/utils/filename-hash.js b/config/webpack/utils/filename-hash.js
deleted file mode 100644
index e0d8a6d..0000000
--- a/config/webpack/utils/filename-hash.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const crypto = require("crypto");
-
-module.exports.getFileNameHash = (fileName, prefix, justHash = false) => {
- let hash = crypto
- .createHash("md5")
- .update(`${prefix}-${fileName}`)
- .digest("hex");
-
- if (production) {
- return hash;
- } else {
- hash = hash.substring(16);
- if (justHash) {
- return hash;
- } else {
- return `${fileName}-${hash}`;
- }
- }
-};