diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-06-13 23:28:57 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-06-13 23:28:57 +0530 |
| commit | 7164ef595147d997068b953d0e8bd19add0db5f9 (patch) | |
| tree | 415a297d71c7ef93c5bc38d071b8870d01020fa2 /config/webpack/utils/build-file.js | |
| parent | 64e38ab240a1ca3427592eb80f2cef57fddbdafe (diff) | |
| download | banglar-bhumi-utils-7164ef595147d997068b953d0e8bd19add0db5f9.tar.gz banglar-bhumi-utils-7164ef595147d997068b953d0e8bd19add0db5f9.zip | |
Using es-modules for webpack configuration.
Diffstat (limited to 'config/webpack/utils/build-file.js')
| -rw-r--r-- | config/webpack/utils/build-file.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/webpack/utils/build-file.js b/config/webpack/utils/build-file.js index 2ab8d86..6945911 100644 --- a/config/webpack/utils/build-file.js +++ b/config/webpack/utils/build-file.js @@ -1,6 +1,6 @@ -const crypto = require("crypto"); +import crypto from "crypto"; -module.exports.getFileName = (fileName, prefix, justHash = false) => { +export const getFileName = (fileName, prefix, justHash = false) => { let hash = crypto .createHash("md5") .update(`${prefix}-${fileName}`) |
