dee222648d
添加@iconify-json/ph图标库依赖 在nuxt.config.ts中配置vite优化依赖 更新社交媒体图标为ph:x-logo 实现首页"Talk"按钮的悬停动画效果
48 lines
999 B
TypeScript
48 lines
999 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
app: {
|
|
head: {
|
|
charset: 'utf-8',
|
|
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
|
|
},
|
|
},
|
|
vite: {
|
|
optimizeDeps: {
|
|
include: [
|
|
'lenis',
|
|
'gsap',
|
|
'gsap/ScrollTrigger',
|
|
],
|
|
},
|
|
},
|
|
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,
|
|
},
|
|
})
|