installed unocss and it works

This commit is contained in:
Avraham Sakal
2025-05-02 11:48:53 -04:00
parent 9e9e1076d5
commit 4b52a65314
5 changed files with 677 additions and 41 deletions
+1
View File
@@ -33,6 +33,7 @@
"globals": "^16.0.0", "globals": "^16.0.0",
"typescript": "~5.7.2", "typescript": "~5.7.2",
"typescript-eslint": "^8.26.1", "typescript-eslint": "^8.26.1",
"unocss": "66.1.0-beta.13",
"vite": "^6.3.1", "vite": "^6.3.1",
"wrangler": "^4.14.1" "wrangler": "^4.14.1"
} }
+668 -41
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -3,6 +3,7 @@ import { createRoot } from "react-dom/client";
import { RouterProvider, createRouter } from "@tanstack/react-router"; import { RouterProvider, createRouter } from "@tanstack/react-router";
// Import the generated route tree // Import the generated route tree
import { routeTree } from "./routeTree.gen"; import { routeTree } from "./routeTree.gen";
import "virtual:uno.css";
// import App from "./App.tsx"; // import App from "./App.tsx";
+5
View File
@@ -0,0 +1,5 @@
import { defineConfig } from "unocss";
export default defineConfig({
// ...UnoCSS options
});
+2
View File
@@ -2,6 +2,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc"; import react from "@vitejs/plugin-react-swc";
import { cloudflare } from "@cloudflare/vite-plugin"; import { cloudflare } from "@cloudflare/vite-plugin";
import { TanStackRouterVite } from "@tanstack/router-plugin/vite"; import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
import UnoCSS from "unocss/vite";
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
@@ -9,6 +10,7 @@ export default defineConfig({
// must go before `react` plugin: // must go before `react` plugin:
TanStackRouterVite({ target: "react", autoCodeSplitting: true }), TanStackRouterVite({ target: "react", autoCodeSplitting: true }),
react(), react(),
UnoCSS(),
cloudflare(), cloudflare(),
], ],
}); });