The $RefPlugin
powers the refs feature of Mosaic.
The plugin scrapes $ref
properties from page metadata and also applies all refs stored in config.data.refs
.
Other plugins can use config.setRef
to apply new refs, as long as they call it before this plugin has reaches $beforeSend
.
This plugin runs with a priority of -1 so it runs after most other plugins.