企业官网
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.

69 lines
1.3 KiB

export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
modules: [
'@nuxtjs/tailwindcss',
'shadcn-nuxt',
'@nuxt/icon',
'nuxt-swiper',
'motion-v/nuxt',
'@nuxt/image',
],
devtools: { enabled: true },
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
css: ['~/assets/styles/main.css'],
vite: {
plugins: [
],
optimizeDeps: {
include: ['motion-v'],
},
ssr: {
noExternal: ['motion-v'],
},
},
app: {
head: {
title: 'EM系列储能边缘智能网关-比特电科',
meta: [
{
name: 'description',
content: 'EM系列储能边缘智能网关-比特电科',
},
{
name: 'keywords',
content: 'EM系列储能边缘智能网关-比特电科',
},
{
name: 'viewport',
content: 'width=device-width, initial-scale=1.0',
},
],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico',
},
],
noscript: [
{
innerHTML: 'JavaScript is required',
},
],
},
},
devServer: {
port: 3300, // 设置开发服务器端口
host: '0.0.0.0', // 可选:允许外部访问
},
image: {
provider: 'ipx',
dir: 'public',
},
})