Skip to content

Commit

Permalink
fix(build): fail ng build on error (angular#2360)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva authored and Danny Blue committed Oct 3, 2016
1 parent ae0ab3e commit ed3ba48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/angular-cli/tasks/build-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export default <any>Task.extend({
runTaskOptions.baseHref
).config;

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

const webpackCompiler: any = webpack(config);

const ProgressPlugin = require('webpack/lib/ProgressPlugin');
Expand Down

0 comments on commit ed3ba48

Please sign in to comment.