File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
angular/pwa/pwa/files/assets
schematics/angular/service-worker Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 4
4
"theme_color" : " #1976d2" ,
5
5
"background_color" : " #fafafa" ,
6
6
"display" : " browser" ,
7
- "Scope " : " /" ,
7
+ "scope " : " /" ,
8
8
"start_url" : " /" ,
9
9
"icons" : [
10
10
{
11
- "src" : " images /icons/icon-72x72.png" ,
11
+ "src" : " /assets /icons/icon-72x72.png" ,
12
12
"sizes" : " 72x72" ,
13
13
"type" : " image/png"
14
14
},
15
15
{
16
- "src" : " images /icons/icon-96x96.png" ,
16
+ "src" : " /assets /icons/icon-96x96.png" ,
17
17
"sizes" : " 96x96" ,
18
18
"type" : " image/png"
19
19
},
20
20
{
21
- "src" : " images /icons/icon-128x128.png" ,
21
+ "src" : " /assets /icons/icon-128x128.png" ,
22
22
"sizes" : " 128x128" ,
23
23
"type" : " image/png"
24
24
},
25
25
{
26
- "src" : " images /icons/icon-144x144.png" ,
26
+ "src" : " /assets /icons/icon-144x144.png" ,
27
27
"sizes" : " 144x144" ,
28
28
"type" : " image/png"
29
29
},
30
30
{
31
- "src" : " images /icons/icon-152x152.png" ,
31
+ "src" : " /assets /icons/icon-152x152.png" ,
32
32
"sizes" : " 152x152" ,
33
33
"type" : " image/png"
34
34
},
35
35
{
36
- "src" : " images /icons/icon-192x192.png" ,
36
+ "src" : " /assets /icons/icon-192x192.png" ,
37
37
"sizes" : " 192x192" ,
38
38
"type" : " image/png"
39
39
},
40
40
{
41
- "src" : " images /icons/icon-384x384.png" ,
41
+ "src" : " /assets /icons/icon-384x384.png" ,
42
42
"sizes" : " 384x384" ,
43
43
"type" : " image/png"
44
44
},
45
45
{
46
- "src" : " images /icons/icon-512x512.png" ,
46
+ "src" : " /assets /icons/icon-512x512.png" ,
47
47
"sizes" : " 512x512" ,
48
48
"type" : " image/png"
49
49
}
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ function updateIndexFile(options: ServiceWorkerOptions): Rule {
189
189
190
190
const indent = getIndent ( closingHeadTagLine ) + ' ' ;
191
191
const itemsToAdd = [
192
- '<link rel="manifest" href=". /manifest.json">' ,
192
+ '<link rel="manifest" href="assets /manifest.json">' ,
193
193
'<meta name="Description" content="Angular Application">' ,
194
194
'<meta name="theme-color" content="#FFFFFF">' ,
195
195
] ;
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ describe('Service Worker Schematic', () => {
101
101
const tree = schematicRunner . runSchematic ( 'service-worker' , defaultOptions , appTree ) ;
102
102
const content = tree . readContent ( 'projects/bar/src/index.html' ) ;
103
103
104
- expect ( content ) . toMatch ( / < l i n k r e l = " m a n i f e s t " h r e f = " \. \/ m a n i f e s t .j s o n " > / ) ;
104
+ expect ( content ) . toMatch ( / < l i n k r e l = " m a n i f e s t " h r e f = " a s s e t s \/ m a n i f e s t .j s o n " > / ) ;
105
105
expect ( content ) . toMatch ( / < m e t a n a m e = " D e s c r i p t i o n " c o n t e n t = " A n g u l a r A p p l i c a t i o n " > / ) ;
106
106
expect ( content ) . toMatch ( / < m e t a n a m e = " t h e m e - c o l o r " c o n t e n t = " # F F F F F F " > / ) ;
107
107
} ) ;
You can’t perform that action at this time.
0 commit comments