Having the experience of building nodes, I am prepping a new release of one.
This time around, it has plugins, that need to be initialised prior to any instance of my normal flow editor nodes.
One thing I am confused about.
Do they require a matching .html file?
My plugins are of the following shape.
Backend (A few admin hooks for example)
Front End (Loading of client libraries, side bar etc etc)
So do I
A (both using the same type name)
my-plugin.js
my-plugin.html
or
B (separate plugins - and type names)
my-plugin-backend.js
my-plugin-frontend.html
Looking at examples, it seems they need to be unique - although working together
A plugin can have either or both files. It depends if it is a frontend (.html) or backend (.js) plugin. There is no dependency between them.
Here you can see Node-RED Debugger has both files and they each register their plugin with the corresponding RED api object. (Ignore the fact the .js file here is a .ts file - was my first attempt at using TypeScript)