File tree 3 files changed +6
-3
lines changed
packages/angular-cli/models/webpack-configs
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 137
137
"@types/rimraf" : " 0.0.25-alpha" ,
138
138
"@types/semver" : " ^5.3.30" ,
139
139
"@types/source-map" : " ^0.5.0" ,
140
- "@types/webpack" : " 2.2.0 " ,
140
+ "@types/webpack" : " ^ 2.2.1 " ,
141
141
"chai" : " ^3.5.0" ,
142
142
"conventional-changelog" : " ^1.1.0" ,
143
143
"dtsgenerator" : " ^0.7.1" ,
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
133
133
] . concat ( extraRules )
134
134
} ,
135
135
plugins : [
136
+ new webpack . NoEmitOnErrorsPlugin ( ) ,
136
137
new HtmlWebpackPlugin ( {
137
138
template : path . resolve ( appRoot , appConfig . index ) ,
138
139
filename : path . resolve ( buildOptions . outputPath , appConfig . index ) ,
Original file line number Diff line number Diff line change 1
1
import { ng } from '../../utils/process' ;
2
2
import { expectToFail } from '../../utils/utils' ;
3
- import { deleteFile } from '../../utils/fs' ;
3
+ import { deleteFile , expectFileToExist } from '../../utils/fs' ;
4
4
5
5
export default function ( ) {
6
6
return deleteFile ( 'src/app/app.component.ts' )
7
7
// This is supposed to fail since there's a missing file
8
- . then ( ( ) => expectToFail ( ( ) => ng ( 'build' ) ) ) ;
8
+ . then ( ( ) => expectToFail ( ( ) => ng ( 'build' ) ) )
9
+ // Failed builds don't leave behind dist/
10
+ . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/' ) ) ) ;
9
11
}
You can’t perform that action at this time.
0 commit comments