Skip to content

Commit

Permalink
fix: buildCss options pass error after onBuildComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
fangran committed Nov 16, 2021
1 parent c7b5e4c commit 33a4bbc
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,14 @@ export default function (api: IApi) {

buildCss(
cwd,
options.theme.map(
(theme) => ({
...theme,
fileName: winPath(join(outputPath, 'theme', theme.fileName)),
}),
{
min: true,
...options,
},
),
options.theme.map((theme) => ({
...theme,
fileName: winPath(join(outputPath, 'theme', theme.fileName)),
})),
{
min: true,
...options,
},
)
.then(() => {
api.logger.log('🎊 build theme success');
Expand Down

0 comments on commit 33a4bbc

Please sign in to comment.