7 Star 0 Fork 0

Sally / shenlingwuliu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sally 提交于 2024-01-02 17:31 . 初始化项目
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/mayor-of-gotham-city/shenlingwuliu.git
git@gitee.com:mayor-of-gotham-city/shenlingwuliu.git
mayor-of-gotham-city
shenlingwuliu
shenlingwuliu
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891