diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2023-04-04 14:53:04 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2023-04-04 14:53:04 +0530 |
| commit | 5f23f07d04073c06af530332c2d75b48d6c023a0 (patch) | |
| tree | 2c7359a2b33b95f92f3bba9a9074e6bf9137ac1d /config/webpack/utils/file-name-hash.js | |
| parent | d178caee5c93ad9ed91dbd082b0f0b5a9b0507aa (diff) | |
| download | banglar-bhumi-utils-5f23f07d04073c06af530332c2d75b48d6c023a0.tar.gz banglar-bhumi-utils-5f23f07d04073c06af530332c2d75b48d6c023a0.zip | |
Using different global variables for shared modules.
Diffstat (limited to 'config/webpack/utils/file-name-hash.js')
| -rw-r--r-- | config/webpack/utils/file-name-hash.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/config/webpack/utils/file-name-hash.js b/config/webpack/utils/file-name-hash.js deleted file mode 100644 index 889e9a4..0000000 --- a/config/webpack/utils/file-name-hash.js +++ /dev/null @@ -1,11 +0,0 @@ -const crypto = require("crypto"); - -module.exports.getFileNameHash = (fileName, prefix) => { - const finalFileName = `${prefix}-${fileName}`; - const hash = crypto - .createHash("md5") - .update(finalFileName) - .digest("hex"); - - return production ? hash : `${fileName}-${hash.substring(16)}`; -}; |
