-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathnuxt.config.ts
93 lines (90 loc) · 2.46 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
82
83
84
85
86
87
88
89
90
91
92
93
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify';
export default defineNuxtConfig({
runtimeConfig: {
public: {
kurocoApiDomain: 'https://dev-nuxt-auth.a.kuroco.app'
}
},
app: {
head: {
title: 'Nuxt Auth',
htmlAttrs: {
lang: 'ja'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: '' },
{
name: 'og_title',
property: 'og:title',
content: 'Kuroco sample'
},
{
name: 'og_description',
property: 'og:description',
content: 'Kuroco sample page'
},
{ name: 'robots', content: 'index' }
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/icon_kuroco.svg' },
]
}
},
devtools: { enabled: true },
css: ['@/assets/style.scss'],
build: {
transpile: ['vuetify']
},
modules: [
(_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config) => {
// @ts-expect-error
config.plugins.push(vuetify({ autoImport: true }));
});
},
'@formkit/nuxt',
'nuxt-snackbar',
'@nuxtjs/i18n',
'@nuxt/eslint'
],
i18n: {
locales: [
{ code: 'en', iso: 'en-US', file: 'en.json', name: 'English' },
{ code: 'ja', iso: 'ja-JP', file: 'ja.json', name: '日本語' }
],
defaultLocale: 'en',
strategy: 'prefix_except_default',
langDir: 'locales',
compilation: {
strictMessage: false // To allow html tags in locales
}
},
formkit: {
// Experimental support for auto loading (see note):
autoImport: true
},
snackbar: {
top: true,
duration: 5000
},
module: ['@nuxtjs/eslint-module'],
eslint: {
cache: false,
eslintPath: './eslintrc.mjs'
},
vite: {
vue: {
template: {
transformAssetUrls
},
// @ts-ignore-next-line
server: {
watch: {
usePolling: true
}
}
}
}
});