chore: 移除 json 缩进, 减少 json 大小

This commit is contained in:
lisonge
2023-09-18 00:59:34 +08:00
parent 9ebafafd07
commit e10c7be223
2 changed files with 2 additions and 3884 deletions

3884
dist/gkd.json vendored

File diff suppressed because one or more lines are too long

View File

@@ -40,7 +40,7 @@ export const writeConfig = async (fp: string, config: SubscriptionConfig) => {
map.set(k, newConfig[k]);
});
const buffer = Buffer.from(
JSON.stringify(Object.fromEntries(map.entries()), void 0, 2),
JSON.stringify(Object.fromEntries(map.entries())),
'utf-8',
);
await fs.writeFile(fp, buffer);