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

0 commit comments

Comments
Β (0)