From 7a5e512723c23d0485abfa5bbd82a82bcb48c823 Mon Sep 17 00:00:00 2001 From: chenshuai Date: Tue, 24 Sep 2019 17:18:40 +0800 Subject: [PATCH] support win --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index ef1a717..43bfc52 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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(() => { @@ -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, @@ -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,