installed unocss and it works
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Generated
+668
-41
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(),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user