Skip to content

Commit

Permalink
fix(alita): 修复win平台下 路径错误的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ykforerlang committed Dec 12, 2019
1 parent 3388038 commit c3e9ed5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extractWxCompFiles/extractJSONFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function shortPath(ao, module) {

const absolutePath = ao.replace(configure.inputFullpath, '')
.replace('node_modules', 'npm')
.replace(/\\/g, '/') // 考虑win平台

const shortPath = relativePath.length > absolutePath.length ? absolutePath : relativePath

Expand Down

0 comments on commit c3e9ed5

Please sign in to comment.