1 Star 0 Fork 393

fork-series/avue-cli

forked from smallwei/avue-cli 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 681 Bytes
一键复制 编辑 原始数据 按行查看 历史
smallwei 提交于 2022-09-30 00:08 . feat:more and more
import { defineConfig, loadEnv } from 'vite'
const { resolve } = require('path')
import createVitePlugins from './vite/plugins'
// https://vitejs.dev/config/
export default ({ mode, command }) => {
const env = loadEnv(mode, process.cwd())
const { VITE_APP_BASE } = env
return defineConfig({
base: VITE_APP_BASE,
resolve: {
alias: {
'~': resolve(__dirname, './'),
"@": resolve(__dirname, "./src"),
"components": resolve(__dirname, "./src/components"),
"styles": resolve(__dirname, "./src/styles"),
"utils": resolve(__dirname, "./src/utils"),
}
},
plugins: createVitePlugins(env, command === 'build'),
})
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/fork-series/avue-cli.git
git@gitee.com:fork-series/avue-cli.git
fork-series
avue-cli
avue-cli
master

搜索帮助