Skip to content

Commit 6d26c75

Browse files
NoelDeMartinhaoqunjiang
authored andcommitted
fix: use relative paths in manifest.json for compatibility with Github Pages (vuejs#2271)
* Use relative paths in manifest.json * Use dot syntax for relative paths in manifest.json
1 parent 9757f14 commit 6d26c75

File tree

1 file changed

+3
-3
lines changed
  • packages/@vue/cli-plugin-pwa/generator/template/public

1 file changed

+3
-3
lines changed

packages/@vue/cli-plugin-pwa/generator/template/public/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"short_name": "<%- rootOptions.projectName %>",
44
"icons": [
55
{
6-
"src": "/img/icons/android-chrome-192x192.png",
6+
"src": "./img/icons/android-chrome-192x192.png",
77
"sizes": "192x192",
88
"type": "image/png"
99
},
1010
{
11-
"src": "/img/icons/android-chrome-512x512.png",
11+
"src": "./img/icons/android-chrome-512x512.png",
1212
"sizes": "512x512",
1313
"type": "image/png"
1414
}
1515
],
16-
"start_url": "/index.html",
16+
"start_url": "./index.html",
1717
"display": "standalone",
1818
"background_color": "#000000",
1919
"theme_color": "#4DBA87"

0 commit comments

Comments
 (0)