mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
chore: fix es statistic (#35826)
This commit is contained in:
parent
4f6ebc944c
commit
61704494df
@ -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.`));
|
||||
|
Loading…
Reference in New Issue
Block a user