Something went wrong. Try again.
[WIP] Matrix Client for web and desktop
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930import { defineConfig } from "vite";import solid from "@solidjs/vite-plugin";import tailwindcss from "@tailwindcss/vite";
export default defineConfig({ // Turnkey client mode: no index.html and no mount file — the plugin // generates the entries around src/App.tsx, wrapped in src/Document.tsx // (or a built-in shell). `vite build` prerenders the shell into // dist/client/index.html and emits a purely static dist/client. plugins: [ // `extensions` makes @solidjs/vite-plugin also compile the `?pick=` route // modules the fileRoutes plugin emits (their ids end in a query string). solid({ start: true, extensions: [".jsx", ".tsx"], diagnostics: true }), // add `ssr: true` for streaming SSR tailwindcss(), ], server: { port: 3000, }, build: { target: "esnext", // Keep images as asset files instead of inlining them into the JS bundle. assetsInlineLimit: 0, }, resolve: { alias: { "@": "/src", }, },});