chore: 调整环境配置
This commit is contained in:
@@ -6,6 +6,7 @@ import path from "path";
|
||||
|
||||
// @ts-ignore
|
||||
export default defineConfig(({ mode }) => {
|
||||
console.log("mode", mode);
|
||||
const env = loadEnv(mode, process.cwd(), ["VITE_"]);
|
||||
|
||||
return {
|
||||
@@ -26,10 +27,10 @@ export default defineConfig(({ mode }) => {
|
||||
// 注入环境变量到客户端
|
||||
"process.env": JSON.stringify(env),
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(process.cwd(), "../../dist/renderer"),
|
||||
clean: true,
|
||||
},
|
||||
// output: {
|
||||
// path: path.resolve(process.cwd(), "../../dist/renderer"),
|
||||
// clean: true,
|
||||
// },
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user