installed unocss and it works

install-unocss
Avraham Sakal 2 months ago
parent 9e9e1076d5
commit 4b52a65314

@ -33,6 +33,7 @@
"globals": "^16.0.0",
"typescript": "~5.7.2",
"typescript-eslint": "^8.26.1",
"unocss": "66.1.0-beta.13",
"vite": "^6.3.1",
"wrangler": "^4.14.1"
}

File diff suppressed because it is too large Load Diff

@ -3,6 +3,7 @@ import { createRoot } from "react-dom/client";
import { RouterProvider, createRouter } from "@tanstack/react-router";
// Import the generated route tree
import { routeTree } from "./routeTree.gen";
import "virtual:uno.css";
// import App from "./App.tsx";

@ -0,0 +1,5 @@
import { defineConfig } from "unocss";
export default defineConfig({
// ...UnoCSS options
});

@ -2,6 +2,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { cloudflare } from "@cloudflare/vite-plugin";
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
import UnoCSS from "unocss/vite";
// https://vite.dev/config/
export default defineConfig({
@ -9,6 +10,7 @@ export default defineConfig({
// must go before `react` plugin:
TanStackRouterVite({ target: "react", autoCodeSplitting: true }),
react(),
UnoCSS(),
cloudflare(),
],
});

Loading…
Cancel
Save