1 Star 0 Fork 113

LiYuTing / tov-template

forked from 帝莎编程 / tov-template 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.ts 454 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { dirname, resolve } from 'path'
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
import Tov from './presets'
export const _dirname =
typeof __dirname !== 'undefined'
? __dirname
: dirname(fileURLToPath(import.meta.url))
export default defineConfig({
resolve: {
alias: {
'~/': resolve(_dirname, 'src'),
},
},
define: {
__VUE_OPTIONS_API__: false, // 明确不使用 options api
},
plugins: [Tov()],
})
TypeScript
1
https://gitee.com/liyuting_1/tov-template.git
git@gitee.com:liyuting_1/tov-template.git
liyuting_1
tov-template
tov-template
main

搜索帮助