-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
86 lines (67 loc) · 2.12 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import ReactivityTransform from "@vue-macros/reactivity-transform/vite";
export default defineNuxtConfig({
devtools: { enabled: true },
runtimeConfig: {},
appConfig: {},
vite: {
vue: {},
plugins: [ReactivityTransform()],
},
vue: {
// defineModel: true,
propsDestructure: true,
},
app: {
head: {
title: "WSの小屋",
meta: [
{ name: "author", content: "[email protected]" },
{
name: "description",
content: "你就像天外来物一样求之不得!",
},
],
link: [
{
rel: "stylesheet",
type: "text/css",
href: "https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.css",
},
{
rel: "stylesheet",
type: "text/css",
href: "/pio/static/pio.css",
},
],
script: [
// { src: "https://fastly.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js", type: "text/javascript" },
// { src: "https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js", type: "text/javascript" },
// { src: "https://apii.ctose.cn/live2d/Source-One/default/autoload.js", type: "text/javascript" },
{ src: "https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.js", type: "text/javascript" },
{ src: "/pio/static/l2d.js", type: "text/javascript" },
{ src: "/pio/static/pio.js", type: "text/javascript" },
],
},
// PageTransitionEvent: { name: "page", mode: "out-in" },
// layoutTransition: {
// name: "page",
// mode: "out-in" // 默认值
// },
// pageTransition: {
// name: "page",
// mode: "out-in" // 默认值
// },
},
css: ["~/assets/css/main.less"],
modules: ["@unocss/nuxt", "@vueuse/nuxt", "@pinia/nuxt"],
// modules: ["@nuxtjs/stylelint-module", "@nuxtjs/eslint-module", "@unocss/nuxt", "@vueuse/nuxt", "@pinia/nuxt"],
nitro: {
imports: {
dirs: ["~/server/utils"],
},
},
// experimental: {
// viewTransition: true,
// }
});