@genee/uno-dev
v1.0.5
Published
## 1. 整合方法
Downloads
4
Readme
Uno Dev Env
1. 整合方法
// 在项目的vite.config.ts
import { createUnoEnv } from "@genee/uno-dev/vite";
export default defineConfig({
base: process.env.NODE_ENV === "production" ? "./" : "",
plugins: [
// inspect(),
createUnoEnv("main.tsx", {
gateway: "http://uno.dev.gapper.in/gapper/gateway",
clientId: "CLIENT_ID",
clientSecret: "CLIENT_SECRET",
username: "UNO_USERNAME",
password: "UNO_PASSWORD",
params: {
colors: {
primaryColor: "#336699",
},
},
}),
],
});