You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

63 lines
1.7 KiB

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
theme: "",
devtools: {enabled: false},
css: ['animate.css/animate.css'],
build: {
transpile:
process.env.NODE_ENV === 'production'
? [
'naive-ui',
'vueuc',
'@css-render/vue3-ssr',
'@juggle/resize-observer'
]
: ['@juggle/resize-observer']
},
vite: {
optimizeDeps: {
include:
process.env.NODE_ENV === 'development'
? ['naive-ui', 'vueuc', 'date-fns-tz/esm/formatInTimeZone']
: []
}
},
modules: [
[
'@nuxtjs/i18n',
{
vueI18n: './i18n.config.ts',
defaultLocale: 'zh',
locales: ['zh', 'en']
}
],
[
'nuxt-lodash',
{
prefix: "_",
prefixSkip: ["string"],
upperAfterPrefix: false,
exclude: ["map"],
alias: [
["camelCase", "stringToCamelCase"], // => stringToCamelCase
["kebabCase", "stringToKebab"], // => stringToKebab
["isDate", "isLodashDate"], // => _isLodashDate
],
}
],
'@nuxtjs/tailwindcss',
'@hypernym/nuxt-anime',
'dayjs-nuxt'
],
plugins: [
{
src: '~/plugins/particles.ts'
},
{
src: '~/plugins/wow.ts',
mode: 'client'
}
],
})