Skip to content

Commit

Permalink
fix修正快应用Manifest配置文件,在windows下json转换时反斜杆‘\\’路径问题 (#4979)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhouhu authored and luckyadam committed Dec 16, 2019
1 parent 8db81f3 commit 3179958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-mini-runner/src/plugins/MiniPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ export default class MiniPlugin {
pageConfigs: this.pageConfigs,
quickappJSON: this.options.quickappJSON
})
const quickappJSONStr = JSON.stringify(quickappJSON)
const quickappJSONStr = JSON.stringify(quickappJSON).replace(/\\\\/g, '/')
compilation.assets['./manifest.json'] = {
size: () => quickappJSONStr.length,
source: () => quickappJSONStr
Expand Down

0 comments on commit 3179958

Please sign in to comment.