mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-06-18 15:54:08 +08:00
8fc5023a0d
- 新增 ogl 依赖并更新 lock 文件,为后续 wrapped 视觉效果扩展提供基础支持。 - 在 nuxt head 中引入 Font Awesome CDN 样式资源。
60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-07-15',
|
|
devtools: { enabled: false },
|
|
|
|
// 配置前端开发服务器端口
|
|
devServer: {
|
|
port: 3000
|
|
},
|
|
|
|
// 配置API代理,解决跨域问题
|
|
nitro: {
|
|
devProxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
|
|
// 应用配置
|
|
app: {
|
|
head: {
|
|
title: '微信数据库解密工具',
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{ name: 'description', content: '微信4.x版本数据库解密工具' }
|
|
],
|
|
link: [
|
|
{ rel: 'icon', type: 'image/png', href: '/logo.png' },
|
|
{ rel: 'stylesheet', href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css' }
|
|
]
|
|
},
|
|
pageTransition: { name: 'page', mode: 'out-in' }
|
|
},
|
|
|
|
// 模块配置
|
|
modules: [
|
|
'@nuxtjs/tailwindcss',
|
|
'@pinia/nuxt'
|
|
],
|
|
|
|
// 启用组件自动导入
|
|
components: [
|
|
{ path: '~/components', pathPrefix: false }
|
|
],
|
|
|
|
// Tailwind配置
|
|
tailwindcss: {
|
|
cssPath: ['~/assets/css/tailwind.css', { injectPosition: "first" }],
|
|
configPath: 'tailwind.config',
|
|
exposeConfig: {
|
|
level: 2
|
|
},
|
|
config: {},
|
|
viewer: true
|
|
}
|
|
})
|