I would like to add a plugin system to my Electron application so that my users can add new features to my application. I was originally thinking that I would let my users upload a .zip containing a plugin and then it would extract, and require the plugin to use it within the application. I then ran into problems with the idea.
- How should I handle a plugin which has dependencies since I cannot use
npm(e.glodash)? - How can I give the plugin an API to use (e.g getting application theme or resource name)
I am not sure how this could be handled, I've looked around for similar cases but haven't found them. My ultimate goal is to have a system that works in Electron similar to how Wordpress plugins work.
from How should I handle user-facing plugins in Electron?
No comments:
Post a Comment