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
Plugins are given their configurations in a new lifecycle hook
This new configuration will be passed to the plugin in a new lifecycle hook (possibly called onSetConfiguration). Plugins may be reconfigured many times depending on whether watched files (such as bsconfig or specific plugin files) changed.
publiconSetConfiguration(config: YourConfigInterfaceType){this.config=config;//do stuff based on this config}
The text was updated successfully, but these errors were encountered:
Add formal support for plugin configurations in the bsconfig.
Here's how it should work:
existing plugin string shorthand will still work
plugin definitions can now be objects, with the following properties
src
- the plugin string shorthand described above (an npm package name, or a path to a nodejs script)config
- the plugin-specific config object that will be given to the plugin, or a path to a jsonc config file to be loadedPlugins are given their configurations in a new lifecycle hook
This new configuration will be passed to the plugin in a new lifecycle hook (possibly called
onSetConfiguration
). Plugins may be reconfigured many times depending on whether watched files (such as bsconfig or specific plugin files) changed.The text was updated successfully, but these errors were encountered: