diff options
Diffstat (limited to 'config/webpack/utils/file-name-hash.js')
| -rw-r--r-- | config/webpack/utils/file-name-hash.js | 3 |
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); |
