提交 771e494a 编写于 作者: T Tim Neutkens

Log out stats.errors and err object when build fails

上级 14668aa3
......@@ -46,7 +46,11 @@ function runCompiler (compiler) {
return new Promise(async (resolve, reject) => {
const webpackCompiler = await webpack(await compiler)
webpackCompiler.run((err, stats) => {
if (err) return reject(err)
if (err) {
console.log({...err})
console.log(...stats.errors)
return reject(err)
}
const jsonStats = stats.toJson({ warnings: true, errors: true })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册