print details of webpack errors - fixes #403

This commit is contained in:
Rich Harris
2018-09-02 21:53:46 -04:00
parent 4a92fbbbfa
commit bf9cbe2f3b

View File

@@ -28,8 +28,7 @@ export class WebpackCompiler {
const result = new WebpackResult(stats);
if (result.errors.length) {
// TODO print errors
// console.error(stats.toString({ colors: true }));
console.error(stats.toString({ colors: true }));
reject(new Error(`Encountered errors while building app`));
}