Skip to content

Commit

Permalink
fix(webpack-runner): 修复devServer open配置无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Nov 11, 2018
1 parent b8452ce commit 127839f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/taro-webpack-runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ const buildDev = async (config: BuildConfig): Promise<any> => {
return console.log(err)
}
resolve()
opn(devUrl)

/* 补充处理devServer.open配置 */
if (devServerOptions.open) {
opn(devUrl)
}
})
})
}
Expand Down

0 comments on commit 127839f

Please sign in to comment.