Allow plugins to depend on other plugins
See original GitHub issueIs there any way to specify that one plugin requires another to be loaded? For example, if I’ve written a plugin that processes messages from gpsi in order to do something special, I’d like to ideally ensure that gpsi gets loaded without having to tell a user to make sure they’ve set --plugins.load gpsi my-plugin
.
Barring that, it would at least be nice to have a final list of loaded plugins so I could throw an error or log a message noting that gpsi (or whatever other plugin I depend on) isn’t loaded.
Similarly, it would be helpful to be able to supply additional options to the plugin I depend on. For example, I am working on a plugin that requires a special post-script be used for Browsertime. It would be nice to somehow explicitly declare that I depend on Browsertime and provide the path to the post-script to load from my plugin instead of telling users to make sure they set that Browsertime option appropriately on the CLI.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (10 by maintainers)
https://github.com/sitespeedio/sitespeed.io/issues/1837
Lets create an issue the coming days then the coming days to open the Browsertime from sitespeed.io to async a JavaScript, it’s a nice feature but no one has focused on opening it up from the outside.