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.
15 lines
478 B
15 lines
478 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 { VITE_BASE_URL } = loadEnv(mode, `${process.cwd()}/vite-env`);
|
|
return defineConfig({
|
|
...baseCfg({ VITE_BASE_URL }),
|
|
plugins: [
|
|
vue(),
|
|
...await pluginCfg({ VITE_BASE_URL })],
|
|
define: {'process.env':{}}
|
|
});
|
|
};
|
|
|