@@ -40,10 +40,10 @@ export default function () {
40
40
. then ( ( ) => expectFileToMatch ( 'dist/common-entry.bundle.css' , '.common-entry-style' ) )
41
41
. then ( ( ) => expectFileToMatch ( 'dist/common-entry.bundle.js' , 'common-entry-script' ) )
42
42
// there are no js entry points for css only bundles
43
- . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/styles .bundle.js' ) ) )
44
- . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/lazy-styles .bundle.js' ) ) )
45
- . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/renamed-styles .bundle.js' ) ) )
46
- . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/renamed-lazy-styles .bundle.js' ) ) )
43
+ . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/style .bundle.js' ) ) )
44
+ . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/lazy-style .bundle.js' ) ) )
45
+ . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/renamed-style .bundle.js' ) ) )
46
+ . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/renamed-lazy-style .bundle.js' ) ) )
47
47
// index.html lists the right bundles
48
48
. then ( ( ) => expectFileToMatch ( 'dist/index.html' , oneLineTrim `
49
49
<link href="renamed-style.bundle.css" rel="stylesheet"/>
@@ -55,5 +55,11 @@ export default function () {
55
55
<script type="text/javascript" src="vendor.bundle.js"></script>
56
56
<script type="text/javascript" src="common-entry.bundle.js"></script>
57
57
<script type="text/javascript" src="main.bundle.js"></script>
58
- ` ) ) ;
58
+ ` ) )
59
+ . then ( ( ) => ng ( 'build' , '--no-extract-css' ) )
60
+ // js files still exist when not extracting css
61
+ . then ( ( ) => expectFileToExist ( 'dist/styles.bundle.js' ) )
62
+ . then ( ( ) => expectFileToExist ( 'dist/lazy-style.bundle.js' ) )
63
+ . then ( ( ) => expectFileToExist ( 'dist/renamed-style.bundle.js' ) )
64
+ . then ( ( ) => expectFileToExist ( 'dist/renamed-lazy-style.bundle.js' ) ) ;
59
65
}
0 commit comments