2 Star 0 Fork 0

和浩琨/前端项目

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuxt.config.ts 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
和浩琨 提交于 2024-12-03 23:31 . 影视会员修改客服
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'],
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hehaokun/new-nuxt-frontend.git
git@gitee.com:hehaokun/new-nuxt-frontend.git
hehaokun
new-nuxt-frontend
前端项目
master

搜索帮助