diff options
Diffstat (limited to 'config/webpack/utils')
| -rw-r--r-- | config/webpack/utils/filename-hash.js (renamed from config/webpack/utils/file-name-hash.js) | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/webpack/utils/file-name-hash.js b/config/webpack/utils/filename-hash.js index 889e9a4..bd66647 100644 --- a/config/webpack/utils/file-name-hash.js +++ b/config/webpack/utils/filename-hash.js @@ -1,10 +1,9 @@ const crypto = require("crypto"); module.exports.getFileNameHash = (fileName, prefix) => { - const finalFileName = `${prefix}-${fileName}`; const hash = crypto .createHash("md5") - .update(finalFileName) + .update(`${prefix}-${fileName}`) .digest("hex"); return production ? hash : `${fileName}-${hash.substring(16)}`; |
