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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
CRXJS plugins are possible, in fact, CRXJS is a collection of plugins with special hooks.
RFC
What use cases do you have for CRXJS plugins? How could we improve the API design in an official plugin API?
Unofficial plugin instructions
Plugins are not documented yet, as I haven't yet finalized a public plugin API. You can look at the types here.
CrxPlugin
from@crxjs/vite-plugin
crx:
so CRXJS uses the CRXJS hookstransformCrxManifest
orrenderCrxManifest
hooks to modify the manifesttransformCrxManifest
modifies the input manifest at the beginning of the transform hookrenderCrxManifest
modifies the output manifest at the end of the generateBundle hookYou can add a CRXJS hook to a plugin like this:
Beta Was this translation helpful? Give feedback.
All reactions