You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
448 B

import { defineConfig, loadEnv } from "vite";
import vue from "@vitejs/plugin-vue";
import { baseCfg, pluginCfg } from "./vite-config";
import basicSsl from '@vitejs/plugin-basic-ssl'
// ,basicSsl()
export default async ({ mode }) => {
const viteEnv = loadEnv(mode, `${process.cwd()}/vite-env`);
return defineConfig({
...baseCfg(viteEnv),
plugins: [
vue(),
...await pluginCfg(viteEnv)],
define: {'process.env':{}}
});
};