Skip to content

Commit

Permalink
feat(debug): always start debug cli
Browse files Browse the repository at this point in the history
  • Loading branch information
erha19 committed Feb 13, 2019
1 parent a0530f4 commit 2b5b78d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@weex/plugins/debug/commands/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ module.exports = {
config: options.config || options.c
},
async (error, output, json) => {
let bundles = []
if (error) {
await analyzer('compile', Array.isArray(error)?error.join('\n'):error)
return
}
else {
let bundles = json.assets.map(asset => {
bundles = json.assets.map(asset => {
let entry
let date = new Date()
const formateTime = (value) => {
Expand All @@ -132,8 +132,8 @@ module.exports = {
entry: entry
}
})
await api.startDevtoolServer(bundles, devtoolOptions)
}
await api.startDevtoolServer(bundles, devtoolOptions)
}
)
} else {
Expand Down

0 comments on commit 2b5b78d

Please sign in to comment.