continue-custom/gui/vite.config.ts
2024-10-16 10:15:25 +09:00

24 lines
645 B
TypeScript

import react from "@vitejs/plugin-react-swc";
import tailwindcss from "tailwindcss";
import { defineConfig } from "vitest/config";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
build: {
// Change the output .js filename to not include a hash
rollupOptions: {
// external: ["vscode-webview"],
output: {
entryFileNames: `assets/[name].js`,
chunkFileNames: `assets/[name].js`,
assetFileNames: `assets/[name].[ext]`,
},
},
},
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/util/test/setupTests.ts",
},
});