Skip to content

Commit aa48c30

Browse files
authored
fix(build): fail ng build on error (#2360)
Fix #2014
1 parent 45e2d67 commit aa48c30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/angular-cli/tasks/build-webpack.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export default <any>Task.extend({
2424
runTaskOptions.baseHref
2525
).config;
2626

27+
// fail on build error
28+
config.bail = true;
29+
2730
const webpackCompiler: any = webpack(config);
2831

2932
const ProgressPlugin = require('webpack/lib/ProgressPlugin');

0 commit comments

Comments
 (0)