-
Notifications
You must be signed in to change notification settings - Fork 3
/
nuxt.config.ts
82 lines (77 loc) · 1.84 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
baseURL: process.env.NODE_ENV === 'production' ? '/cyoa-editor/' : '/',
buildAssetsDir: 'assets',
head: {
title: 'Interactive CYOA',
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: 'favicon.ico',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: 'favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: 'favicon-16x16.png',
},
{
rel: 'android-chrome',
type: 'image/png',
sizes: '92x192',
href: 'android-chrome-92x192.png',
},
{
rel: 'andriod-chrome',
type: 'image/png',
sizes: '512x512',
href: 'android-chrome-512x512.png',
},
{
rel: 'apple-touch-icon',
type: 'image/png',
sizes: '180x180',
href: 'apple-touch-icon.png',
},
{ rel: 'manifest', href: '/site.webmanifest' },
],
noscript: [
// <noscript>JavaScript is required</noscript>
{ children: 'JavaScript is required' },
],
},
},
ssr: false,
imports: { autoImport: true },
css: [
'@unocss/reset/normalize.css',
'~/assets/css/bootstrap/global.scss',
'~/assets/css/toast.scss',
'~/assets/css/main.css',
],
plugins: ['~/plugins/toast.client.ts'],
devtools: { enabled: true },
typescript: { typeCheck: true },
components: [
{
path: '~/components',
pathPrefix: false,
},
],
modules: [
'@unocss/nuxt',
'@pinia/nuxt',
'pinia-plugin-persistedstate/nuxt',
'@vueuse/nuxt',
'@nuxt/image',
],
compatibilityDate: '2024-09-04',
});