-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
59 lines (56 loc) · 1.55 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
import config from './config'
const isDev = process.env.NODE_ENV === 'development'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
// devtools: { enabled: true }, //开发工具
app: {
baseURL: isDev ? '/' : '/abinWeb/',
buildAssetsDir: 'static', //修改站点资产的文件夹名称,默认是_nuxt
head: {
title: '前端助手',
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content:
'width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no'
},
{ name: 'description', content: config.SEO_description },
{ name: 'keywords', content: config.SEO_keywords },
{ name: 'author', content: config.author },
{
name: 'bytedance-verification-code',
content: 'Z39UIZv8+Uw0Uu1UX7Ap'
}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/abinWeb/favicon.ico' }
],
script: [
{
defer: true,
src: '/abinWeb/js/busuanzi.js'
}
]
}
},
experimental: {
payloadExtraction: false //提取使用nuxt generate生成的页面的有效负载
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData:
"@import '~/assets/styles/common.scss';@import '~/assets/styles/theme.scss';@import '~/assets/styles/layout.scss';"
}
}
}
},
css: ['@/assets/styles/global.scss'],
postcss: {
plugins: {
tailwindcss: {}
}
}
})