@@ -2,7 +2,7 @@ const isDeployPreview = process.env.hasOwnProperty('DEPLOY_PREVIEW');
2
2
3
3
const meta = {
4
4
title : 'Vue Select | VueJS Select2/Chosen Component' ,
5
- description : 'Everything you wish the HTML < select> element could do, wrapped up into a lightweight, extensible Vue component.' ,
5
+ description : 'Everything you wish the HTML < select> element could do, wrapped up into a lightweight, extensible Vue component.' ,
6
6
url : 'http://sagalbot.github.io/vue-select/' ,
7
7
icon : '/vue-logo.png' ,
8
8
} ;
@@ -22,44 +22,60 @@ let head = [
22
22
rel : 'stylesheet' ,
23
23
type : 'text/css' ,
24
24
} ] ,
25
- [ 'link' , { rel : 'icon' , href : `/vue-logo.png` } ] ,
26
- [ 'meta' , { name : 'theme-color' , content : '#3eaf7c' } ] ,
27
- [ 'meta' , { name : 'apple-mobile-web-app-capable' , content : 'yes' } ] ,
28
- [ 'meta' , { name : 'apple-mobile-web-app-status-bar-style' , content : 'black' } ] ,
29
- [ 'link' , { rel : 'apple-touch-icon' , href : `/icons/apple-touch-icon-152x152.png` } ] ,
30
- [ 'link' , { rel : 'mask-icon' , href : '/icons/safari-pinned-tab.svg' , color : '#3eaf7c' } ] ,
31
- [ 'meta' , { name : 'msapplication-TileImage' , content : '/icons/msapplication-icon-144x144.png' } ] ,
32
- [ 'meta' , { name : 'msapplication-TileColor' , content : '#000000' } ]
25
+ [ 'link' , { rel : 'icon' , href : `/vue-logo.png` } ] ,
26
+ [ 'meta' , { name : 'theme-color' , content : '#3eaf7c' } ] ,
27
+ [ 'meta' , { name : 'apple-mobile-web-app-capable' , content : 'yes' } ] ,
28
+ [ 'meta' , { name : 'apple-mobile-web-app-status-bar-style' , content : 'black' } ] ,
29
+ [
30
+ 'link' ,
31
+ { rel : 'apple-touch-icon' , href : `/icons/apple-touch-icon-152x152.png` } ] ,
32
+ [
33
+ 'link' ,
34
+ { rel : 'mask-icon' , href : '/icons/safari-pinned-tab.svg' , color : '#3eaf7c' } ] ,
35
+ [
36
+ 'meta' ,
37
+ {
38
+ name : 'msapplication-TileImage' ,
39
+ content : '/icons/msapplication-icon-144x144.png' ,
40
+ } ] ,
41
+ [ 'meta' , { name : 'msapplication-TileColor' , content : '#000000' } ] ,
42
+ [ 'meta' , { name : 'title' , content : meta . title } ] ,
43
+ [ 'meta' , { name : 'description' , content : meta . description } ] ,
44
+ [ 'link' , { rel : 'icon' , href : meta . icon , type : 'image/png' } ] ,
45
+ [ 'meta' , { property : 'og:image' , content : meta . icon } ] ,
46
+ [ 'meta' , { property : 'twitter:image' , content : meta . icon } ] ,
47
+ [ 'meta' , { name : 'description' , content : meta . description } ] ,
48
+ [ 'meta' , { property : 'og:description' , content : '' } ] ,
49
+ [ 'meta' , { property : 'twitter:description' , content : meta . description } ] ,
50
+ [ 'meta' , { property : 'twitter:title' , content : meta . title } ] ,
51
+ [ 'meta' , { property : 'og:title' , content : meta . title } ] ,
52
+ [ 'meta' , { property : 'og:site_name' , content : meta . title } ] ,
53
+ [ 'meta' , { property : 'og:url' , content : meta . url } ] ,
33
54
] ;
34
55
35
56
if ( isDeployPreview ) {
36
57
head . push (
37
58
[ 'meta' , { name : 'robots' , content : 'noindex' } ] ,
38
59
[ 'meta' , { name : 'googlebot' , content : 'noindex' } ] ,
39
60
) ;
40
- } else {
41
- head . push (
42
- [ 'meta' , { name : 'title' , content : meta . title } ] ,
43
- [ 'meta' , { name : 'description' , content : meta . description } ] ,
44
- [ 'link' , { rel : 'icon' , href : meta . icon , type : 'image/png' } ] ,
45
- [ 'meta' , { property : 'og:image' , content : meta . icon } ] ,
46
- [ 'meta' , { property : 'twitter:image' , content : meta . icon } ] ,
47
- [ 'meta' , { name : 'description' , content : meta . description } ] ,
48
- [ 'meta' , { property : 'og:description' , content : '' } ] ,
49
- [ 'meta' , { property : 'twitter:description' , content : meta . description } ] ,
50
- [ 'meta' , { property : 'twitter:title' , content : meta . title } ] ,
51
- [ 'meta' , { property : 'og:title' , content : meta . title } ] ,
52
- [ 'meta' , { property : 'og:site_name' , content : meta . title } ] ,
53
- [ 'meta' , { property : 'og:url' , content : meta . url } ] ,
54
- ) ;
55
61
}
56
62
57
63
module . exports = {
58
64
title : 'Vue Select' ,
59
65
description : meta . description ,
60
66
head,
61
- serviceWorker : ! isDeployPreview ,
62
- ga : isDeployPreview ? '' : 'UA-12818324-8' ,
67
+ plugins : {
68
+ '@vuepress/google-analytics' : {
69
+ ga : isDeployPreview ? '' : 'UA-12818324-8' ,
70
+ } ,
71
+ '@vuepress/pwa' : {
72
+ serviceWorker : true ,
73
+ updatePopup : {
74
+ message : 'New content is available.' ,
75
+ buttonText : 'Refresh' ,
76
+ } ,
77
+ } ,
78
+ } ,
63
79
themeConfig : {
64
80
repo : 'sagalbot/vue-select' ,
65
81
editLinks : true ,
0 commit comments