-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.js
220 lines (197 loc) · 5.66 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
vue: {
config: {
productionTip: false,
},
},
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Monster Buddy - Companion App For Monster Hunter Stories 2',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
'Includes monster attack types and weaknesses, egg patterns, monstie locations and retreat conditions',
},
{ name: 'format-detection', content: 'telephone=no' },
{
hid: 'twitter:title',
name: 'twitter:title',
content: 'Monster Buddy',
},
{
hid: 'twitter:description',
name: 'twitter:description',
content: 'Companion App For Monster Hunter Stories 2: Wings Of Ruin',
},
{
hid: 'twitter:image',
name: 'twitter:image',
content: 'https://monsterbuddy.app/icon.png',
},
{
hid: 'twitter:image:alt',
name: 'twitter:image:alt',
content: 'Monster Buddy - Companion App For Monster Hunter Stories 2',
},
{
hid: 'og:title',
property: 'og:title',
content: 'Monster Buddy',
},
{
hid: 'og:description',
property: 'og:description',
content: 'Companion App For Monster Hunter Stories 2: Wings Of Ruin',
},
{
hid: 'og:image:secure_url',
property: 'og:image:secure_url',
content: 'https://monsterbuddy.app/icon.png',
},
{
hid: 'og:image:alt',
property: 'og:image:alt',
content: 'Monster Buddy - Companion App For Monster Hunter Stories 2',
},
{
name: 'theme-color',
content: '#ffffff',
media: '(prefers-color-scheme: light)',
hid: 'theme-color-light',
},
{
name: 'theme-color',
content: '#1f2937',
media: '(prefers-color-scheme: dark)',
hid: 'theme-color-dark',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
script: [
{
defer: true,
'data-domain': 'monsterbuddy.app',
'data-api': '/newt/api/event',
src: '/newt/js/script.js',
},
],
bodyAttrs: {
class:
'max-w-full min-h-screen overflow-x-hidden overflow-y-scroll hide-scrollbars tap-highlight-none bg-gray-300 text-gray-700 dark:bg-cool-700 dark:text-cool-300',
},
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: ['@fortawesome/fontawesome-svg-core/styles.css'],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: ['~/plugins/fontawesome.js', '~/plugins/globalStores.js'],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
/**
* Temporary workaround for @nuxt-community/tailwindcss-module.
*
* Reported: 2022-05-23
* See: [Issue tracker](https://github.com/nuxt-community/tailwindcss-module/issues/480)
*/
devServerHandlers: [],
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
// https://go.nuxtjs.dev/tailwindcss
'@nuxtjs/tailwindcss',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
// https://color-mode.nuxtjs.org
'@nuxtjs/color-mode',
// https://composition-api.nuxtjs.org/getting-started/setup#quick-start
'@nuxtjs/composition-api/module',
'@pinia/nuxt',
'~/modules/sitemapRouteGenerator',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://sitemap.nuxtjs.org/guide/setup
'@nuxtjs/sitemap',
],
// PWA module configuration: https://go.nuxtjs.dev/pwa
pwa: {
icon: {
cacheDir: '.cache/pwa/icon2',
},
manifest: {
name: 'Monster Buddy',
short_name: 'Monster Buddy',
description:
'Companion App For Monster Hunter Stories 2: Wings Of Ruin. Includes monster attack types and weaknesses, egg patterns, monstie locations and retreat conditions.',
lang: 'en',
background_color: '#cbd5e1',
// theme_color: '#ffffff',
},
},
colorMode: {
classSuffix: '',
},
// https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-loading
loading: {
continuous: true,
height: '4px',
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
babel: {
plugins: ['lodash'],
},
extend(config) {
config.module.rules.push(
{
test: /\.json$/i,
loader: 'json5-loader',
type: 'javascript/auto',
},
{
include: /node_modules/u,
test: /\.mjs$/u,
type: 'javascript/auto',
}
);
},
},
// https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-generate
generate: {
exclude: [
'/monsters/filter',
'/monsties/filter',
'/eggs/filter',
'/elders-lair/filter',
'/test',
],
fallback: true,
},
sitemap: {
hostname: 'https://monsterbuddy.app',
trailingSlash: true,
exclude: [
'/monsters/filter',
'/monsties/filter',
'/eggs/filter',
'/elders-lair/filter',
'/test',
],
routes: [
{ url: '/', priority: 1 },
{ url: '/monsters', priority: 1 },
{ url: '/monsties', priority: 1 },
{ url: '/eggs', priority: 1 },
{ url: '/catavan-stands', priority: 1 },
{ url: '/elders-lair', priority: 1 },
{ url: '/coop', priority: 1 },
{ url: '/riding-actions', priority: 0.9 },
],
},
};