Skip to content

Commit b846b8d

Browse files
Added PWA support (#543)
* Added PWA support * feat: added PWA plugin dependency
1 parent 7cb38f9 commit b846b8d

30 files changed

+336
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"devDependencies": {
3+
"@vuepress/plugin-pwa": "^1.5.4",
34
"node-sass": "^4.13.1",
45
"sass-loader": "^8.0.2",
56
"vuepress": "^1.5.4"

src/.vuepress/config.js

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,34 @@ module.exports = {
228228
href: '/logo.png'
229229
}
230230
],
231+
['link', { rel: 'manifest', href: '/manifest.json' }],
232+
['meta', { name: 'theme-color', content: '#3eaf7c' }],
233+
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
231234
[
232-
'script',
235+
'meta',
236+
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black' }
237+
],
238+
[
239+
'link',
233240
{
234-
src: 'https://player.vimeo.com/api/player.js'
241+
rel: 'apple-touch-icon',
242+
href: '/images/icons/apple-icon-152x152.png'
235243
}
236244
],
245+
[
246+
'meta',
247+
{
248+
name: 'msapplication-TileImage',
249+
content: '/images/icons/ms-icon-144x144.png'
250+
}
251+
],
252+
['meta', { name: 'msapplication-TileColor', content: '#000000' }],
253+
[
254+
('script',
255+
{
256+
src: 'https://player.vimeo.com/api/player.js'
257+
})
258+
],
237259
[
238260
'script',
239261
{
@@ -317,7 +339,8 @@ module.exports = {
317339
},
318340
{
319341
text: 'Vue Test Utils',
320-
link: 'https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html'
342+
link:
343+
'https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html'
321344
},
322345
{
323346
text: 'Devtools',
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
4.13 KB
Loading
Loading
421 Bytes
Loading
854 Bytes
Loading
Loading
1.12 KB
Binary file not shown.
Loading
Loading
Loading
Loading

src/.vuepress/public/manifest.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "Vue.js",
3+
"short_name": "Vue.js",
4+
"start_url": ".",
5+
"display": "standalone",
6+
"background_color": "#3eaf7c",
7+
"description": "Vue.js framework documentation",
8+
"icons": [
9+
{
10+
"src": "images/icons/android-icon-48x48.png",
11+
"sizes": "48x48",
12+
"type": "image/png"
13+
},
14+
{
15+
"src": "images/icons/android-icon-72x72.png",
16+
"sizes": "72x72",
17+
"type": "image/png"
18+
},
19+
{
20+
"src": "images/icons/android-icon-96x96.png",
21+
"sizes": "96x96",
22+
"type": "image/png"
23+
},
24+
{
25+
"src": "images/icons/apple-icon-144x144.png",
26+
"sizes": "144x144",
27+
"type": "image/png"
28+
},
29+
{
30+
"src": "images/icons/android-icon-192x192.png",
31+
"sizes": "192x192",
32+
"type": "image/png"
33+
}
34+
]
35+
}

0 commit comments

Comments
 (0)