mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 01:01:45 +00:00
use same hash format as webpack defaults
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ function genLangFile(lang, dest) {
|
|||||||
|
|
||||||
const json = JSON.stringify(translations, null, 4);
|
const json = JSON.stringify(translations, null, 4);
|
||||||
const jsonBuffer = Buffer.from(json);
|
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`;
|
const filename = `${lang}.${digest}.json`;
|
||||||
|
|
||||||
fs.writeFileSync(dest + filename, json);
|
fs.writeFileSync(dest + filename, json);
|
||||||
|
|||||||
Reference in New Issue
Block a user