Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): show full error stats
Browse files Browse the repository at this point in the history
filipesilva committed Oct 25, 2016

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
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
@@ -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');
@@ -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();
});
});
}

0 comments on commit 501a7ff

Please sign in to comment.