From e56206241ba1ae683e0eb3d14122210a8217b533 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 20 Feb 2019 09:39:27 +0100 Subject: [PATCH] use same hash format as webpack defaults --- scripts/copy-res.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/copy-res.js b/scripts/copy-res.js index f1ed15b5d..4a2c6707d 100755 --- a/scripts/copy-res.js +++ b/scripts/copy-res.js @@ -165,7 +165,7 @@ function genLangFile(lang, dest) { const json = JSON.stringify(translations, null, 4); const jsonBuffer = Buffer.from(json); - const digest = loaderUtils.getHashDigest(jsonBuffer, "sha512", "base64", 7); + const digest = loaderUtils.getHashDigest(jsonBuffer, null, null, 7); const filename = `${lang}.${digest}.json`; fs.writeFileSync(dest + filename, json);