19 lines
527 B
TypeScript
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]`,
|
|
},
|
|
},
|
|
},
|
|
});
|