8 Star 0 Fork 0

倾酒祭流年/shenling-logistics

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
倾酒祭流年 提交于 2024-03-15 09:29 . 初始化项目
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import Components from 'unplugin-vue-components/vite'
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import { viteMockServe } from 'vite-plugin-mock'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
vueJsx(),
Components({
resolvers: [
AntDesignVueResolver({
importStyle: false, // css in js
}),
],
}),
viteMockServe({
mockPath: './src/mock',
enable: true,
watchFiles: false,
}),
],
server: {
open: true,
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xing947552684/shenling-logistics.git
git@gitee.com:xing947552684/shenling-logistics.git
xing947552684
shenling-logistics
shenling-logistics
develop

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385