@@ -61,11 +61,11 @@ export default function() {
6161 ` , '@angular/router' ) )
6262 . then ( ( ) => addImportToModule (
6363 'src/app/app.module.ts' , 'ReactiveFormsModule' , '@angular/forms' ) )
64- . then ( ( ) => ng ( 'build' , '--prod ' ) )
64+ . then ( ( ) => ng ( 'build' , '--output-hashing=all ' ) )
6565 . then ( ( ) => {
6666 oldHashes = generateFileHashMap ( ) ;
6767 } )
68- . then ( ( ) => ng ( 'build' , '--prod ' ) )
68+ . then ( ( ) => ng ( 'build' , '--output-hashing=all ' ) )
6969 . then ( ( ) => {
7070 newHashes = generateFileHashMap ( ) ;
7171 } )
@@ -74,16 +74,16 @@ export default function() {
7474 oldHashes = newHashes ;
7575 } )
7676 . then ( ( ) => writeFile ( 'src/styles.css' , 'body { background: blue; }' ) )
77- . then ( ( ) => ng ( 'build' , '--prod ' ) )
77+ . then ( ( ) => ng ( 'build' , '--output-hashing=all ' ) )
7878 . then ( ( ) => {
7979 newHashes = generateFileHashMap ( ) ;
8080 } )
8181 . then ( ( ) => {
82- validateHashes ( oldHashes , newHashes , [ 'styles' ] ) ;
82+ validateHashes ( oldHashes , newHashes , [ 'inline' , ' styles'] ) ;
8383 oldHashes = newHashes ;
8484 } )
8585 . then ( ( ) => writeFile ( 'src/app/app.component.css' , 'h1 { margin: 10px; }' ) )
86- . then ( ( ) => ng ( 'build' , '--prod ' ) )
86+ . then ( ( ) => ng ( 'build' , '--output-hashing=all ' ) )
8787 . then ( ( ) => {
8888 newHashes = generateFileHashMap ( ) ;
8989 } )
@@ -93,7 +93,7 @@ export default function() {
9393 } )
9494 . then ( ( ) => addImportToModule (
9595 'src/app/lazy/lazy.module.ts' , 'ReactiveFormsModule' , '@angular/forms' ) )
96- . then ( ( ) => ng ( 'build' , '--prod ' ) )
96+ . then ( ( ) => ng ( 'build' , '--output-hashing=all ' ) )
9797 . then ( ( ) => {
9898 newHashes = generateFileHashMap ( ) ;
9999 } )
0 commit comments