diff options
Diffstat (limited to 'config/webpack/utils/build-file.js')
| -rw-r--r-- | config/webpack/utils/build-file.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/webpack/utils/build-file.js b/config/webpack/utils/build-file.js index 9a0ae66..6d8fc85 100644 --- a/config/webpack/utils/build-file.js +++ b/config/webpack/utils/build-file.js @@ -4,12 +4,11 @@ module.exports.getFileName = (fileName, prefix, justHash = false) => { let hash = crypto .createHash("md5") .update(`${prefix}-${fileName}`) - .digest("hex"); + .digest("hex").substring(16); if (production) { return hash; } else { - hash = hash.substring(16); if (justHash) { return hash; } else { |
