summaryrefslogtreecommitdiffhomepage
path: root/packages/app/vite.config.ts
diff options
context:
space:
mode:
authorDax <[email protected]>2025-09-15 03:28:08 -0400
committerGitHub <[email protected]>2025-09-15 03:28:08 -0400
commit725104572e2b6d64dcfc145d4748124186427c7b (patch)
treedaf5b26437fd267bc41848e0578ed13d1b43bb52 /packages/app/vite.config.ts
parent4954edf8aeb5b8b395fc4f4e91b7fe36cfab212d (diff)
downloadopencode-725104572e2b6d64dcfc145d4748124186427c7b.tar.gz
opencode-725104572e2b6d64dcfc145d4748124186427c7b.zip
feat: add desktop/web app package (#2606)
Co-authored-by: adamdotdevin <[email protected]> Co-authored-by: Adam <[email protected]> Co-authored-by: GitHub Action <[email protected]>
Diffstat (limited to 'packages/app/vite.config.ts')
-rw-r--r--packages/app/vite.config.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/app/vite.config.ts b/packages/app/vite.config.ts
new file mode 100644
index 000000000..e0a62f5f5
--- /dev/null
+++ b/packages/app/vite.config.ts
@@ -0,0 +1,32 @@
+import { defineConfig } from "vite"
+import solidPlugin from "vite-plugin-solid"
+import tailwindcss from "@tailwindcss/vite"
+import path from "path"
+import { iconsSpritesheet } from "vite-plugin-icons-spritesheet"
+import { generateThemeCSS } from "./scripts/vite-theme-plugin"
+
+export default defineConfig({
+ resolve: {
+ alias: {
+ "@": path.resolve(__dirname, "./src"),
+ },
+ },
+ plugins: [
+ generateThemeCSS(),
+ tailwindcss(),
+ solidPlugin(),
+ iconsSpritesheet({
+ withTypes: true,
+ inputDir: "src/assets/file-icons",
+ outputDir: "src/ui/file-icons",
+ formatter: "prettier",
+ }),
+ ],
+ server: {
+ host: "0.0.0.0",
+ port: 3000,
+ },
+ build: {
+ target: "esnext",
+ },
+})