forked from fre123-com/fre123-nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
77 lines (74 loc) · 1.76 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
import path from 'path'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
'@pinia/nuxt',
'@vueuse/nuxt',
'nuxt-icon',
'@pinia-plugin-persistedstate/nuxt',
],
pinia: {
autoImports: ['defineStore', 'storeToRefs'],
},
alias: {
'@': path.resolve(__dirname, 'src'),
},
app: {
head: {
link: [
{
rel: 'icon',
// size: '32x32',
type: 'image/x-icon',
href: 'https://img.fre123.com/i/2023/11/25/65619e791f166.ico',
},
],
meta: [
{
name: 'keywords',
content:
'FRE123, 免费资源, 优质资源, 资源聚合, 在线资源, 影视资源, 动漫番剧, 软件工具, 网盘资源',
},
{
name: 'description',
content:
'FRE123 专注于为您提供各种免费优质资源,包括影视资源、动漫番剧、软件工具等。无论您在寻找哪种资源,我们都将尽力为您提供,为您的学习或工作助力',
},
],
},
buildAssetsDir: '/fre/',
},
vite: {
// 预处理,全局可用
css: {
preprocessorOptions: {
scss: {
additionalData: `@import 'assets/_variables.scss';`,
},
},
},
esbuild: {
drop: process.env.NODE_ENV === 'development' ? [] : ['console', 'debugger'],
},
},
experimental: {
writeEarlyHints: false,
inlineSSRStyles: false,
},
css: [
'~/assets/global.scss',
'~/assets/tailwind.css',
'@fortawesome/fontawesome-svg-core/styles.css',
],
build: {
transpile: [
'@fortawesome/vue-fontawesome',
'@fortawesome/fontawesome-svg-core',
'@fortawesome/pro-solid-svg-icons',
'@fortawesome/pro-regular-svg-icons',
'@fortawesome/free-brands-svg-icons',
],
},
devtools: { enabled: process.env.NODE_ENV === 'development' ? true : false },
})