chore: 调整环境配置

This commit is contained in:
wangxuefeng
2025-03-03 18:39:15 +08:00
parent 7c6a86edf6
commit 09ff94c188
14 changed files with 30 additions and 23 deletions

View File

@@ -9,6 +9,7 @@ import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
// @ts-ignore
export default defineConfig(({ mode }) => {
console.log("mode", mode);
const env = loadEnv(mode, process.cwd(), ["VITE_"]);
return {
plugins: [less()],
@@ -37,10 +38,10 @@ export default defineConfig(({ mode }) => {
"@": path.resolve(__dirname, "./src"),
},
},
output: {
path: path.resolve(process.cwd(), "../../dist/y-code-v1"),
clean: true,
},
// output: {
// path: path.resolve(process.cwd(), "../../dist/y-code-v1"),
// clean: true,
// },
},
};
});