-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.js
72 lines (72 loc) · 2.24 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
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
module.exports = {
head: {
title: 'Willin Wang - V0',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'To be Willin is to be willing.' },
{ hid: 'keywords', name: 'keywords', content: 'Willin, Willin Wang, v0, 长岛冰泪' },
{ name: 'author', content: 'Willin Wang' },
{ name: 'format-detection', content: 'telephone=no, email=no' },
{ name: 'mobile-web-app-capable', content: 'yes' },
{ name: 'application-name', content: 'Willin' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-title', content: 'Willin' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black' }
],
link: [
{ rel: 'shortcut icon', href: '/favicon.ico' },
{ rel: 'apple-touch-icon', href: '/touch-icon-iphone-precomposed.png' },
{ rel: 'apple-touch-icon', sizes: '76x76', href: '/touch-icon-ipad-precomposed.png' },
{ rel: 'apple-touch-icon', sizes: '120x120', href: '/touch-icon-iphone-retina-precomposed.png' },
{ rel: 'apple-touch-icon', sizes: '152x152', href: '/touch-icon-ipad-retina-precomposed.png' }
]
},
modules: [
'nuxt-i18n',
'@nuxtjs/google-adsense'
],
plugins: [
{ src: '~/plugins/global.js' },
{ src: '~/plugins/toys.js', ssr: false },
{ src: '~/plugins/google.js', ssr: false }
],
router: {
// middleware: 'i18n'
},
generate: {
// routes: ['/'],
fallback: true
},
build: {
extractCSS: true,
extend(config, { isDev }) {
if (isDev) {
// eslint-disable-next-line no-param-reassign
config.devtool = '#source-map';
}
}
},
i18n: {
locales: [
{ name: '简体中文', code: 'zh', iso: 'zh-CN', file: 'zh.js' },
{ name: 'English', code: 'en', iso: 'en-US', file: 'en.js' }
],
lazy: true,
langDir: 'locales/',
strategy: 'prefix',
defaultLocale: 'zh',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected'
},
rootRedirect: 'zh',
vueI18n: {
fallbackLocale: 'zh'
}
},
'google-adsense': {
id: 'ca-pub5059418763237956',
pageLevelAds: true
}
};