Ai
1 Star 3 Fork 0

ZeroKwok/ElectronVueTemplate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.main.config.mjs 473 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { defineConfig, loadEnv } from 'vite'
// https://vitejs.dev/config
export default defineConfig(({ mode }) => {
// Load env file based on `mode` in the current working directory.
// Set the third parameter to '' to load all env regardless of the
// `VITE_` prefix.
const env = loadEnv(mode, process.cwd(), '')
return {
// vite config
define: {
__APP_ENV__: JSON.stringify(env.APP_ENV),
},
build: {
sourcemap: true
},
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zerokwok/electron-vue-template.git
git@gitee.com:zerokwok/electron-vue-template.git
zerokwok
electron-vue-template
ElectronVueTemplate
master

搜索帮助