File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/angular-cli/tasks Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ export default <any>Task.extend({
26
26
runTaskOptions . aot
27
27
) . config ;
28
28
29
- // fail on build error
30
- config . bail = true ;
31
-
32
29
const webpackCompiler : any = webpack ( config ) ;
33
30
34
31
const ProgressPlugin = require ( 'webpack/lib/ProgressPlugin' ) ;
@@ -43,17 +40,12 @@ export default <any>Task.extend({
43
40
// TODO: Make conditional if using --watch
44
41
webpackCompiler . purgeInputFileSystem ( ) ;
45
42
46
- if ( err ) {
47
- lastHash = null ;
48
- console . error ( err . details || err ) ;
49
- reject ( err . details || err ) ;
50
- }
51
-
52
43
if ( stats . hash !== lastHash ) {
53
44
lastHash = stats . hash ;
54
45
process . stdout . write ( stats . toString ( webpackOutputOptions ) + '\n' ) ;
55
46
}
56
- resolve ( ) ;
47
+
48
+ stats . hasErrors ( ) ? reject ( ) : resolve ( ) ;
57
49
} ) ;
58
50
} ) ;
59
51
}
You can’t perform that action at this time.
0 commit comments