mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-30 00:34:55 +08:00
chore: solve the eslint error about null (#45328)
This commit is contained in:
parent
92644fe2d3
commit
c727bed0e8
@ -155,12 +155,12 @@ const RoutesPlugin = (api: IApi) => {
|
|||||||
// 2. 提取每个样式到独立 css 文件
|
// 2. 提取每个样式到独立 css 文件
|
||||||
styles.forEach((result) => {
|
styles.forEach((result) => {
|
||||||
api.logger.event(
|
api.logger.event(
|
||||||
`${chalk.yellow(file.path)} include ${chalk.blue`[${result.key}]`} ${chalk.yellow(
|
`${chalk.yellow(file.path)} include ${chalk.blue`[${result!.key}]`} ${chalk.yellow(
|
||||||
result.ids.length,
|
result!.ids.length,
|
||||||
)} styles`,
|
)} styles`,
|
||||||
);
|
);
|
||||||
|
|
||||||
const cssFile = writeCSSFile(result.key, result.ids.join(''), result.css);
|
const cssFile = writeCSSFile(result!.key, result!.ids.join(''), result!.css);
|
||||||
|
|
||||||
file.content = addLinkStyle(file.content, cssFile);
|
file.content = addLinkStyle(file.content, cssFile);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user