Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sharedDuringBuild unocss plugin #57

Merged
merged 17 commits into from
Apr 30, 2024
Prev Previous commit
Next Next commit
chore: comment
  • Loading branch information
hi-ogawa committed Apr 29, 2024
commit 22aade7e9b66261f351ea08c1e3db50fa3c6820a
5 changes: 5 additions & 0 deletions examples/react-server/src/features/unocss/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import { createVirtualPlugin } from "../utils/plugin";
// https://github.com/unocss/unocss/tree/47eafba27619ed26579df60fe3fdeb6122b5093c/packages/vite/src/modes/global
// https://github.com/tailwindlabs/tailwindcss/blob/719c0d488378002ff752e8dc7199c843930bb296/packages/%40tailwindcss-vite/src/index.ts

// TODO:
// - content hash not changing?
// - unocss transform plugin?
// - non global mode?

export function vitePluginSharedUnocss(): Plugin {
const ctx = getUnocssContext();

Expand Down