You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, currently there is no way to access unocss ctx from outside the plugin. Is there any support for accessing it?
Suggested solution
I'm not sure about this, but perhaps you can add a new hook in the plugin? For example:
// use promise or hooksconstdeferred=createDeferred<UnocssCtx>()constplugins=[unocss({// resolve unocss config and ctgxconfigResolved: deferred.resolve}),myPlugin(deferred)]
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Clear and concise description of the problem
Hi, I would like to develop a plugin based on unocss externally (using unocss ctx).
https://github.com/unocss/unocss/blob/main/packages/vite/src/index.ts#L29
However, currently there is no way to access unocss ctx from outside the plugin. Is there any support for accessing it?
Suggested solution
I'm not sure about this, but perhaps you can add a new hook in the plugin? For example:
or use context callback
Alternative
No response
Additional context
No response
Validations
README.md
of using the package.The text was updated successfully, but these errors were encountered: