quack / vite.config.ts
Tony Powell
Add dist to base url
d4d27f0
raw
history blame
334 Bytes
import path from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig(() => ({
plugins: [react()],
resolve: {
alias: {
"~": path.resolve(__dirname, "src"),
},
},
build: {
assetsDir: ".",
},
base: "/dist/",
}));