continue-custom/gui/vite.config.ts
Nate Sesti 0d183e82e0
🎨 Replace Shiki with Monaco (#825)
* 🚧 initial setup

* 🚧 textmate syntax highlighting in monaco

* 🚧 cleaning up monaco editor

* 🚧 styling and support for more grammars

* 🚧 code block toolbar

* 🚧 fix streaming into monaco

* 🚧 autolayout in monaco

* 🐛 don't append closing fence to monaco

* 🩹 make monaco readonly

* 💄 match font family in monaco

* 👷 copy textmate-syntaxes in build

* 🔥 Remove old MonacoCodeBlock

* 🐛 remove trailing newline when streaming
2024-02-05 20:15:52 -08:00

19 lines
527 B
TypeScript

import react from "@vitejs/plugin-react-swc";
import tailwindcss from "tailwindcss";
import { defineConfig } from "vite";
// 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]`,
},
},
},
});