33 lines
679 B
TypeScript
33 lines
679 B
TypeScript
import { defineConfig } from "vite";
|
|
import deno from "@deno/vite-plugin";
|
|
import preact from "@preact/preset-vite";
|
|
import tailwindcss from "tailwindcss";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [deno(), preact()],
|
|
css: {
|
|
postcss: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
},
|
|
"/puppet": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
"/images": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
});
|