-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
85 lines (85 loc) · 1.93 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
// https://nuxt.com/docs/api/configuration/nuxt-config
const baseUrl = "/";
export default defineNuxtConfig({
app: {
head: {
meta: [
// <meta name="viewport" content="width=device-width, initial-scale=1">
{ name: "viewport", content: "width=device-width, initial-scale=1" }
],
// <link rel="icon" type="shortcut icon" href="/icon-128.png">
// <link rel="apple-touch-icon" type="image/x-icon" href="/icon-192.png">
// <link id="theme-link" rel="stylesheet" href="/themes/lara-light-teal/theme.css">
link: [
{
rel: "icon",
type: "shortcut icon",
href: "/icon-128.png"
},
{
rel: "apple-touch-icon",
type: "image/x-icon",
href: "/icon-192.png"
},
{
id: "theme-link",
rel: "stylesheet",
href: baseUrl + "themes/lara-light-teal/theme.css"
}
]
}
},
// import PrimeVue, PrimeFlex and PrimeIcons css
css: [
// "primevue/resources/themes/lara-dark-teal/theme.css",
"primevue/resources/primevue.css",
"primeicons/primeicons.css",
"primeflex/primeflex.css"
],
// modules
modules: [
"@nuxtjs/i18n"
// "@vite-pwa/nuxt"
],
// i18n module configuration
i18n: {
locales: [
{
code: "es",
iso: "es-MX",
name: "Español",
file: "es-MX.json"
},
{
code: "en",
iso: "en-US",
name: "English",
file: "en-US.json"
}
],
defaultLocale: "es",
strategy: "no_prefix",
langDir: "lang",
vueI18n: {
legacy: false
}
},
// vite-pwa module configuration
/* pwa: {
workbox: {
navigateFallback: null
},
manifest: {
name: "Nuxt 3 Template",
short_name: "Nuxt 3"
}
}, */
// build settings
build: {
transpile: ["primevue"]
},
// nitro server settings
nitro: {
preset: "azure"
}
});