30 lines
686 B
TypeScript
30 lines
686 B
TypeScript
/// <reference types="vitest/config" />
|
|
import { fileURLToPath } from "node:url";
|
|
import stylex from "@stylexjs/unplugin";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig(({ mode }) => ({
|
|
plugins: [
|
|
stylex.vite({ useCSSLayers: true, dev: mode === "development", runtimeInjection: false }),
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": "http://127.0.0.1:8080",
|
|
"/metrics": "http://127.0.0.1:8080",
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
},
|
|
}));
|