forked from share121/inter-knot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
80 lines (78 loc) · 1.65 KB
/
nuxt.config.ts
File metadata and controls
80 lines (78 loc) · 1.65 KB
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
import process from "node:process";
const baseUrl = process.env.BASE_URL ?? "/inter-knot/";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
devServer: { port: 5173 },
runtimeConfig: {
public: {
baseUrl,
},
},
nitro: {
compressPublicAssets: true,
},
postcss: {
plugins: {
"postcss-preset-env": {},
},
},
vite: {
esbuild: {
// drop: ["debugger", "console"],
},
css: {
preprocessorOptions: {
less: {
additionalData: '@import "~/assets/css/common.less";',
},
},
},
},
app: {
baseURL: baseUrl,
head: {
title: "绳网",
htmlAttrs: {
lang: "zh-CN",
},
meta: [
{
name: "description",
content: "欢迎来到绳网",
},
{
name: "keywords",
content: "绳网,Inter-Knot,zzz,绝区零,Zenless Zone Zero",
},
],
script: [
{
src: "//sdk.51.la/js-sdk-pro.min.js",
id: "LA_COLLECT",
},
{
src: "data:text/javascript,LA.init%28%7Bid%3A%223JL77Y2vKWhB7sba%22%2Cck%3A%223JL77Y2vKWhB7sba%22%2CautoTrack%3Atrue%2CscreenRecord%3Atrue%7D%29",
},
],
link: [
{
rel: "icon",
type: "image/svg+xml",
href: `${baseUrl}icon.svg`,
},
],
},
},
css: ["~/assets/css/main.less"],
modules: [
"@vueuse/nuxt",
[
"@pinia/nuxt",
{
autoImports: ["defineStore", ["defineStore", "definePiniaStore"]],
},
],
],
});