From 10bcebe61617017f25422c6158f3e7cbe43b9114 Mon Sep 17 00:00:00 2001 From: chizukicn Date: Mon, 27 Nov 2023 15:31:29 +0800 Subject: [PATCH] ci: fix not found uno config --- playground/vite.config.ts | 8 ++++++-- playground/uno.config.ts => uno.config.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) rename playground/uno.config.ts => uno.config.ts (92%) diff --git a/playground/vite.config.ts b/playground/vite.config.ts index db3b376..f27b72a 100644 --- a/playground/vite.config.ts +++ b/playground/vite.config.ts @@ -1,14 +1,18 @@ +import { resolve } from "node:path"; import { defineConfig } from "vite"; import jsx from "@vitejs/plugin-vue-jsx"; - import uno from "unocss/vite"; + + // https://vitejs.dev/config/ export default defineConfig(() => ({ base: "/", plugins: [ jsx(), - uno() + uno({ + configFile: resolve(__dirname, "./src/uno.config.ts") + }) ] })); diff --git a/playground/uno.config.ts b/uno.config.ts similarity index 92% rename from playground/uno.config.ts rename to uno.config.ts index 9ff26e4..e2857ce 100644 --- a/playground/uno.config.ts +++ b/uno.config.ts @@ -1,5 +1,5 @@ import { defineConfig, presetUno } from "unocss"; -import presetPalette from "../src"; +import presetPalette from "./src"; export default defineConfig({