Skip to content

Commit

Permalink
fix(mini-runner): 修正快应用pages中ux文件未正确生成问题 (#4969)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhouhu authored and luckyadam committed Dec 25, 2019
1 parent aa61643 commit e9ad2ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/taro-mini-runner/src/plugins/MiniPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,10 @@ export default class MiniPlugin {
relativePath = item.replace(this.sourceDir, '')
}
const extname = path.extname(item)
const templatePath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].TEMPL)
const jsonPath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].CONFIG)
const scriptPath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].SCRIPT)
const stylePath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].STYLE)
const templatePath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].TEMPL).replace(/\\/g, '/')
const jsonPath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].CONFIG).replace(/\\/g, '/')
const scriptPath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].SCRIPT).replace(/\\/g, '/')
const stylePath = relativePath.replace(extname, MINI_APP_FILES[buildAdapter].STYLE).replace(/\\/g, '/')
const itemInfo = taroFileTypeMap[item]
let template = itemInfo.template
if (!isQuickApp) {
Expand Down

0 comments on commit e9ad2ab

Please sign in to comment.