fc52afda99
添加项目基础文件结构,包括: - 国际化多语言支持 - Tailwind CSS配置 - 自定义布局组件 - 平滑滚动和动画效果 - 自定义光标交互 - 错误页面处理
33 lines
739 B
TypeScript
33 lines
739 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-07-15',
|
|
devtools: { enabled: true },
|
|
css: ['~/assets/css/tailwind.css'],
|
|
modules: [
|
|
'@nuxtjs/i18n',
|
|
'@nuxt/hints',
|
|
'@nuxt/icon',
|
|
'@nuxtjs/tailwindcss',
|
|
'@pinia/nuxt'
|
|
],
|
|
tailwindcss: {
|
|
exposeConfig: true,
|
|
viewer: true,
|
|
},
|
|
postcss: {
|
|
plugins: {
|
|
tailwindcss: {},
|
|
autoprefixer: {},
|
|
},
|
|
},
|
|
i18n: {
|
|
locales: [
|
|
{ code: 'zh', name: '中文', language: 'zh-CN', file: 'zh.json' },
|
|
{ code: 'en', name: 'English', language: 'en-US', file: 'en.json' },
|
|
],
|
|
defaultLocale: 'zh',
|
|
strategy: 'no_prefix',
|
|
detectBrowserLanguage: false,
|
|
},
|
|
})
|