41 lines
786 B
TypeScript
41 lines
786 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,
|
|
ws: true,
|
|
},
|
|
"/puppet": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
"/images": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
external: [
|
|
"server",
|
|
],
|
|
},
|
|
},
|
|
});
|