Skip to content

Commit

Permalink
fix(build): show full error stats
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Oct 25, 2016
1 parent 2b17b46 commit 501a7ff
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/angular-cli/tasks/build-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ export default <any>Task.extend({
runTaskOptions.aot
).config;

// fail on build error
config.bail = true;

const webpackCompiler: any = webpack(config);

const ProgressPlugin = require('webpack/lib/ProgressPlugin');
Expand All @@ -43,17 +40,12 @@ export default <any>Task.extend({
// TODO: Make conditional if using --watch
webpackCompiler.purgeInputFileSystem();

if (err) {
lastHash = null;
console.error(err.details || err);
reject(err.details || err);
}

if (stats.hash !== lastHash) {
lastHash = stats.hash;
process.stdout.write(stats.toString(webpackOutputOptions) + '\n');
}
resolve();

stats.hasErrors() ? reject() : resolve();
});
});
}
Expand Down

0 comments on commit 501a7ff

Please sign in to comment.