aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/utils
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-02-09 14:40:38 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-02-09 14:40:38 +0530
commitf18102cdaf55acbf3bae7a7290c9158d21abc7eb (patch)
treeab449b69e8b5684570c108a9dccbad78c51971c7 /config/webpack/utils
parentb6046c22deb4d00ca07a9eedd27c7e8eae064518 (diff)
downloadbanglar-bhumi-utils-f18102cdaf55acbf3bae7a7290c9158d21abc7eb.tar.gz
banglar-bhumi-utils-f18102cdaf55acbf3bae7a7290c9158d21abc7eb.zip
Using path hash for seperating scripts for different paths
Diffstat (limited to 'config/webpack/utils')
-rw-r--r--config/webpack/utils/file-name-hash.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/webpack/utils/file-name-hash.js b/config/webpack/utils/file-name-hash.js
new file mode 100644
index 0000000..e3988a9
--- /dev/null
+++ b/config/webpack/utils/file-name-hash.js
@@ -0,0 +1,3 @@
+const crypto = require("crypto");
+
+module.exports.getFileNameHash = fileName => crypto.createHash("md5").update(fileName).digest("hex").substring(16);