代码拉取完成,页面将自动刷新
import {defineNuxtConfig} from 'nuxt/config';
import Components from 'unplugin-vue-components/vite';
import {NaiveUiResolver} from 'unplugin-vue-components/resolvers';
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
devServer: {
port: 3000,
host: "0.0.0.0",
},
app: {
head: {
title: '云舟科技',
meta: [
{name: '作者', content: '云舟科技'},
{name: '微信', content: 'hexs0918'}
],
link: [
{
rel: 'icon',
href: '/image/favicon.ico'
},
],
script: [
{src: "/js/百度营销.js"},
{src: "/js/51la.js"},
{src: "/js/灵雀.js"},
{src: "/js/版权.js"},
{src: "https://unpkg.com/vconsole@latest/dist/vconsole.min.js"},
{src: "/js/VConsole.js"},
],
bodyAttrs: {style: 'height: 100%; margin:0; padding: 0;'}
},
},
build: {
transpile: process.env.NODE_ENV === 'production' ? ['axios', 'naive-ui', 'vueuc', '@css-render/vue3-ssr', '@juggle/resize-observer', 'date-fns', '@css-render/plugin-bem',] : ['@juggle/resize-observer'],
},
vite: {
plugins: [
Components({
dts: true,
resolvers: [NaiveUiResolver()]
}),
],
},
compatibilityDate: "2024-08-26",
devtools: {enabled: true},
typescript: {
shim: false,
},
modules: ['@element-plus/nuxt', '@vant/nuxt'],
css: ['element-plus/dist/index.css'],
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。