Skip to content

Commit

Permalink
support win
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Sep 24, 2019
1 parent 14ef01e commit 7a5e512
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function(
) {
const { cwd, outputPath, absTmpDirPath } = api.paths;

const themeTemp = join(absTmpDirPath, 'plugin-theme');
const themeTemp = api.winPath(join(absTmpDirPath, 'plugin-theme'));

// 增加中间件
api.addMiddlewareAhead(() => {
Expand All @@ -38,7 +38,7 @@ export default function(
options.theme.map(
theme => ({
...theme,
fileName: join(outputPath, 'theme', theme.fileName),
fileName: api.winPath(join(outputPath, 'theme', theme.fileName)),
}),
{
min: true,
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function(
cwd,
options.theme.map(theme => ({
...theme,
fileName: join(themeTemp, 'theme', theme.fileName),
fileName: api.winPath(join(themeTemp, 'theme', theme.fileName)),
})),
{
min: false,
Expand Down

0 comments on commit 7a5e512

Please sign in to comment.