-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
180 lines (179 loc) · 4.62 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
import colors from 'vuetify/es5/util/colors'
import webpack from 'webpack'
export default {
ssr: true,
target: 'static',
generate: {
fallback: true
},
/*
** Headers of the page
*/
head: {
// titleTemplate: '%s - ' + process.env.npm_package_name,
titleTemplate: '%s ~Wオルタと計算~',
meta: [
{
name: 'google-site-verification',
content: 'YErJ_L6Y37Gp2VHGitsOCjVgi50WYGrOr31AZnl8q-s'
},
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
name: 'keywords',
content: 'FGO,ダメージ計算,NP計算,宝具,NP回収,NP獲得,オルタ'
},
{
hid: 'description',
name: 'description',
content:
'FGOの計算サイトです。ジャンヌ〔オルタ〕とアルトリア〔オルタ〕と宝具ダメージ計算、宝具NP獲得計算ができます。'
},
{
hid: 'twitter:card',
name: 'twitter:card',
content: 'summary'
},
{ hid: 'twitter:site', name: 'twitter:site', content: '@destino591211' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{
hid: 'og:title',
property: 'og:title',
content: 'FGO Calculator ~Wオルタと一緒に計算~'
},
{
hid: 'og:url',
property: 'og:url',
content: 'https://fgo-damage-calculation.web.app'
},
{
hid: 'og:description',
property: 'og:description',
content: 'Wオルタと一緒に計算! FGO Calculator by @destino591211'
},
{
hid: 'og:image',
property: 'og:image',
content: 'https://fgo-damage-calculation.web.app/ogp.png'
},
{ name: 'twitter:card', content: 'summary_large_image' }, // twitterの画像サイズ
{
hid: 'og:site_name',
name: 'og:site_name',
content: 'FGO Calculator Wオルタと一緒に計算!'
},
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-title', content: 'FGO Calculator' }
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
script: [
{
src: 'https://cdn.jsdelivr.net/npm/pwacompat@2.0.9/pwacompat.min.js',
integrity:
'sha384-VcI6S+HIsE80FVM1jgbd6WDFhzKYA0PecD/LcIyMQpT4fMJdijBh0I7Iblaacawc',
crossorigin: 'anonymous',
defer: true
}
]
},
srcDir: 'src/',
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/vee-validate',
{ src: '~/plugins/firebase.js', mode: 'client' }
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module',
'@nuxtjs/vuetify'
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/pwa',
// Doc: https://github.com/nuxt-community/dotenv-module
'@nuxtjs/dotenv',
'@nuxtjs/google-analytics',
[
'@nuxtjs/google-gtag',
{
id: 'G-RDRGKX0PM0',
debug: false
}
]
],
googleAnalytics: {
id: 'UA-165731113-1'
},
manifest: {
name: 'FGO Calculator',
short_name: 'Wオルタと計算',
title: 'FGO Calculator(Wオルタと一緒に計算)',
'og:title': 'FGO Calculator',
description: 'Wオルタと一緒に計算をしよう!',
'og:description': 'Wオルタと一緒に計算をしよう!',
lang: 'ja',
theme_color: '#000000',
background_color: '#000000',
display: 'standalone',
scope: '/',
start_url: '/',
orientation: 'portrait'
},
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {},
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
customVariables: ['~/assets/variables.scss'],
theme: {
dark: true,
themes: {
dark: {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3
}
}
}
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {},
plugins: [
new webpack.ProvidePlugin({
_: 'lodash'
})
],
transpile: ['vee-validate/dist/rules']
}
}