-
Notifications
You must be signed in to change notification settings - Fork 14
/
nuxt.config.ts
81 lines (70 loc) · 2.02 KB
/
nuxt.config.ts
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
import { NuxtConfig } from '@nuxt/types'
const config: NuxtConfig = {
target: 'static',
build: {
postcss: {
plugins: {
'postcss-custom-properties': {},
'postcss-nested': {}
}
},
extractCSS: process.env.NODE_ENV === 'production'
},
buildModules: [
'@nuxt/typescript-build',
'@nuxtjs/google-analytics'
],
head () {
return {
htmlAttrs: {
lang: 'ja'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:image', property: 'og:image', content: 'https://vuejs-jp.org/img/og/og-default.png' },
{ hid: 'og:image:width', property: 'og:image:width', content: '1200' },
{ hid: 'og:image:height', property: 'og:image:height', content: '630' }
],
link: [
{ rel: 'icon', href: '/favicon-32.png', sizes: '32x32' },
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png' },
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: 'rgb(0, 0, 0)' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Noto+Sans+JP:400,500,700|Roboto:400,500,700|Source+Sans+Pro:400,600,700|Dosis:600|Inconsolata&display=swap' }
]
}
},
css: [
'normalize.css',
'@/assets/styles/bootstrap.css'
],
modules: [
'portal-vue/nuxt',
'cookie-universal-nuxt',
'@nuxtjs/i18n',
'@nuxt/content'
],
plugins: [
{ src: '@/plugins/router.js' },
{ src: '@/plugins/vuelidate.js' },
{ src: '@/plugins/application.js' }
],
googleAnalytics: {
id: 'UA-162346547-1'
},
i18n: {
locales: [
{ code: 'en', iso: 'en-US', name: 'English', file: 'en-US.json' },
{ code: 'ja', iso: 'ja-JP', name: '日本語', file: 'ja-JP.json' }
],
lazy: true,
skipSettingLocaleOnNavigate: true,
langDir: 'locales/',
defaultLocale: 'ja',
vueI18n: {
fallbackLocale: 'ja'
}
}
}
export default config