-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
34 lines (34 loc) · 1.16 KB
/
nuxt.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
module.exports = {
head: {
title: 'Github Rank (China)',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1' },
{ hid: 'description', name: 'description', content: 'Github Rank 中国排行榜' },
{ hid: 'keywords', name: 'keywords', content: 'Willin,Github,Rank,China,XiBang,西邦' },
{ name: 'author', content: 'Willin Wang' },
{ name: 'format-detection', content: 'telephone=no, email=no' },
{ name: 'mobile-web-app-capable', content: 'yes' },
{ name: 'application-name', content: 'Github Rank' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-title', content: 'Github Rank' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black' }
],
link: [
{ rel: 'shortcut icon', href: '/favicon.ico' }
]
},
generate: {
// routes: ['/'],
fallback: true
},
build: {
extractCSS: true,
extend(config, { isDev }) {
if (isDev) {
// eslint-disable-next-line no-param-reassign
config.devtool = '#source-map';
}
}
}
};