refactor: change assets handling to vite-rs

chore: update dev environment

wip: handle vite tooling manually
This commit is contained in:
Alexander Navarro 2025-04-21 20:14:07 -04:00
parent 14a4d9b2b3
commit af709f2e72
26 changed files with 406 additions and 389 deletions

View file

@ -1,8 +1,20 @@
import {defineConfig} from "vite";
export default defineConfig({
root: "frontend/assets",
publicDir: "frontend/static",
base: "/public/assets",
plugins: [],
server: {
port: 3001,
origin: 'http://localhost:3000',
cors: true,
},
build: {
outDir: "../../public", // outDir is relative to the root config
assetsDir: "assets",
emptyOutDir: true,
manifest: true,
rollupOptions: {
input: [
"frontend/assets/js/index.ts",