Files
WeChatDataAnalysis/frontend/nuxt.config.ts
2977094657 58f3c6862d chore: 更新配置和其他小改动
- 更新nuxt配置

- 优化首页样式

- 调整主程序和解密逻辑

- 添加数据库分析脚本
2025-12-14 21:25:07 +08:00

59 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 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' }
]
},
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
}
})