chore: 优化代码

This commit is contained in:
winixt 2023-06-02 10:46:33 +08:00
parent e271094414
commit 59417493c8

View File

@ -31,12 +31,11 @@ export default (api) => {
return [];
},
});
api.addEntryCodeAhead(() => {
if (!isBeforeImports()) {
return `import '${utils.winPath(relative(absTmpPath, globalCSSFile[0]))}';`;
}
return [];
});
}
api.addEntryCodeAhead(() => {
if (!isBeforeImports()) {
return `${globalCSSFile.map((file) => `import '${utils.winPath(relative(absTmpPath, file))}';`).join('')}`;
}
return [];
});
};