mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
chore: generate-cssinjs.ts run wrong in windows (#51264)
This commit is contained in:
parent
9a47f89298
commit
de58553e98
@ -25,7 +25,7 @@ export const generateCssinjs = ({ key, beforeRender, render }: GenCssinjsOptions
|
||||
Promise.all(
|
||||
styleFiles.map(async (file) => {
|
||||
const absPath = url.pathToFileURL(file).href;
|
||||
const pathArr = file.split('/');
|
||||
const pathArr = file.split(path.sep);
|
||||
const styleIndex = pathArr.lastIndexOf('style');
|
||||
const componentName = pathArr[styleIndex - 1];
|
||||
let useStyle: StyleFn = () => {};
|
||||
|
Loading…
Reference in New Issue
Block a user