Skip to content

Commit 26f916a

Browse files
filipesilvaJonathan Jayet
authored and
Jonathan Jayet
committed
fix(build): fail ng build on error (angular#2360)
Fix angular#2014
1 parent ef4d1ea commit 26f916a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
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)