Skip to content

Commit

Permalink
fix(build): 修复构建时主题包样式顺序问题 (#2589)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Oct 7, 2023
1 parent 35eaf8d commit 6d0d7aa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/generate-themes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@ if (!target) {
config.nav.map((item) => {
item.packages.forEach((element) => {
let folderName = element.name.toLowerCase();
if (element.exclude != true) {
sassFileStr += `@import '../../packages/${folderName}/index.scss';\n`;
}
tasks.push(
fs
.copy(
path.resolve(__dirname, `../src/packages/__VUE/${folderName}/index.scss`),
path.resolve(__dirname, `../dist/packages/${folderName}/index.scss`)
)
.then((success) => {
if (element.exclude != true) {
sassFileStr += `@import '../../packages/${folderName}/index.scss';\n`;
}
})
.catch((error) => {})
);
});
Expand Down

0 comments on commit 6d0d7aa

Please sign in to comment.