@@ -47,13 +47,27 @@ export default function () {
47
47
. then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/component-img-absolute.svg' ) ) )
48
48
. then ( ( ) => expectFileMatchToExist ( './dist' , / g l o b a l - i m g - r e l a t i v e \. [ 0 - 9 a - f ] { 20 } \. s v g / ) )
49
49
. then ( ( ) => expectFileMatchToExist ( './dist' , / c o m p o n e n t - i m g - r e l a t i v e \. [ 0 - 9 a - f ] { 20 } \. s v g / ) )
50
- // Check urls with scheme are used as is.
50
+ // Check urls with deploy-url scheme are used as is.
51
51
. then ( ( ) => ng ( 'build' , '--base-href=/base/' , '--deploy-url=http://deploy.url/' ,
52
52
'--extract-css' ) )
53
53
. then ( ( ) => expectFileToMatch ( 'dist/styles.bundle.css' ,
54
54
/ u r l \( \' h t t p : \/ \/ d e p l o y \. u r l \/ a s s e t s \/ g l o b a l - i m g - a b s o l u t e \. s v g \' \) / ) )
55
55
. then ( ( ) => expectFileToMatch ( 'dist/main.bundle.js' ,
56
56
/ u r l \( \' h t t p : \/ \/ d e p l o y \. u r l \/ a s s e t s \/ c o m p o n e n t - i m g - a b s o l u t e \. s v g \' \) / ) )
57
+ // Check urls with base-href scheme are used as is (with deploy-url).
58
+ . then ( ( ) => ng ( 'build' , '--base-href=http://base.url/' , '--deploy-url=deploy/' ,
59
+ '--extract-css' ) )
60
+ . then ( ( ) => expectFileToMatch ( 'dist/styles.bundle.css' ,
61
+ / u r l \( \' h t t p : \/ \/ b a s e \. u r l \/ d e p l o y \/ a s s e t s \/ g l o b a l - i m g - a b s o l u t e \. s v g \' \) / ) )
62
+ . then ( ( ) => expectFileToMatch ( 'dist/main.bundle.js' ,
63
+ / u r l \( \' h t t p : \/ \/ b a s e \. u r l \/ d e p l o y \/ a s s e t s \/ c o m p o n e n t - i m g - a b s o l u t e \. s v g \' \) / ) )
64
+ // Check urls with deploy-url and base-href scheme only use deploy-url.
65
+ . then ( ( ) => ng ( 'build' , '--base-href=http://base.url/' , '--deploy-url=http://deploy.url/' ,
66
+ '--extract-css' ) )
67
+ . then ( ( ) => expectFileToMatch ( 'dist/styles.bundle.css' ,
68
+ / u r l \( \' h t t p : \/ \/ d e p l o y \. u r l \/ a s s e t s \/ g l o b a l - i m g - a b s o l u t e \. s v g \' \) / ) )
69
+ . then ( ( ) => expectFileToMatch ( 'dist/main.bundle.js' ,
70
+ / u r l \( \' h t t p : \/ \/ d e p l o y \. u r l \/ a s s e t s \/ c o m p o n e n t - i m g - a b s o l u t e \. s v g \' \) / ) )
57
71
// Check with base-href and deploy-url flags.
58
72
. then ( ( ) => ng ( 'build' , '--base-href=/base/' , '--deploy-url=deploy/' ,
59
73
'--extract-css' , '--aot' ) )
0 commit comments