mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
use same hash format as webpack defaults
This commit is contained in:
parent
c2d14392b2
commit
e56206241b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue