Skip to content

Commit

Permalink
bugfix(compile): fix replace path logic on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
erha19 committed Jan 18, 2019
1 parent c6bcfe6 commit bd949a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@weex/plugins/compile/src/WeexBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ new Vue(App)
let result = {}
entries.forEach(entry => {
const extname = path.extname(entry)
const basename = entry.replace(`${base}/`, '').replace(extname, '')
const basename = entry.replace(`${base}${this.isWin ? '\\' : '/'}`, '').replace(extname, '')
const templatePathForWeb = path.resolve(this.vueTemplateFloder, basename + '.web.js')
const templatePathForNative = path.resolve(this.vueTemplateFloder, basename + '.js')
if (isweb) {
Expand Down

0 comments on commit bd949a5

Please sign in to comment.