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
505 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`);
const { VITE_BASE_URL, VITE_PORT } = viteEnv;
return defineConfig({
...baseCfg(viteEnv),
plugins: [
vue(),
...await pluginCfg({ VITE_BASE_URL })],
define: {'process.env':{}}
});
};