Clean up router
This commit is contained in:
@@ -2,6 +2,10 @@ import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
export default defineConfig(({ command }) => {
|
||||
if (command === "build") {
|
||||
return { plugins: [vue()], base: "/ca_vue_apps/dist" };
|
||||
} else {
|
||||
return { plugins: [vue()] };
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user