chore: fix es statistic (#35826)

This commit is contained in:
MadCcc 2022-05-31 17:36:18 +08:00 committed by GitHub
parent 4f6ebc944c
commit 61704494df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ ReactDOMServer.renderToString(React.createElement(Notification));
const esPath = `${process.cwd()}/es/_util/theme/util/statistic.js`;
const esContent = await fs.readFile(esPath, 'utf8');
const newEsContent = `${esContent}\nexport var _statistic_build_ = ${JSON.stringify(statistic)}`;
const newEsContent = `${esContent}\n_statistic_build_ = ${JSON.stringify(statistic)}`;
await fs.writeFile(esPath, newEsContent, 'utf8');
console.log(chalk.green(`✅ Collecting token statistics done.`));