-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
92 lines (92 loc) · 2.44 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
module.exports = {
chainWebpack: (config) => {
config.plugin("html").tap((args) => {
args[0].title = "Music Cloud - Vue Music Player";
args[0].description =
"A music app that consumes apple music API and built using Vue, Vuex, Vue Router and Vuetify";
args[0].base_url = "https://musik-cloud.netlify.app/";
args[0].image = args[0].base_url + "logo.png";
args[0].meta = {
"theme-color": "#512DA8",
robots: "follow, index",
description: args[0].description,
image: args[0].image,
locale: {
property: "og:locale",
content: "en_US",
},
type: {
property: "og:type",
content: "website",
},
"og-site_name": {
property: "og:site_name",
content: "Music Cloud",
},
"og-url": {
property: "og:url",
content: args[0].base_url,
},
"og-title": {
property: "og:title",
content: args[0].title,
},
"og-image": {
property: "og:image",
content: args[0].image,
},
"og-description": {
property: "og:description",
content: args[0].description,
},
"og-image-height": {
property: "og:image:height",
content: 400,
},
"og-image-width": {
property: "og:image:width",
content: 400,
},
"og-image-type": {
property: "og:image:type",
content: "image/png",
},
"og-image-alt": {
property: "og:image:alt",
content: args[0].title,
},
"twitter-card": {
property: "twitter:card",
content: "summary_large_image",
},
"twitter-title": {
property: "twitter:title",
content: args[0].title,
},
"twitter-description": {
property: "twitter:description",
content: args[0].description,
},
"twitter-image": {
property: "twitter:image",
content: args[0].image,
},
"twitter-creator": {
property: "twitter:creator",
content: "@jam_es_muriithi",
},
};
return args;
});
},
transpileDependencies: ["vuetify"],
pwa: {
name: "Music Cloud",
themeColor: "#512DA8",
assetsVersion: "2",
manifestOptions: {},
workboxOptions: {
skipWaiting: true
}
},
};