Enable or disable an extension
An ability to control which extensions are active in your application, and which are not
Registering an extension
Both themes and extensions can register extensions. In order to do it, the extension should be added to mosaic.extensions
object of package.json
. The extension must be a valid NPM package, therefore you are required to add it into dependencies
field of your package.json
.
Enabling and disabling an extension is achieved by setting the true
or false
as a value of the extension's key in mosaic.extensions
.
Your theme can also control enabled extensions across the whole application. This allows to disable the previously enabled extension. The sequence of preference in this case is:
Your theme's enabled extensions
Your theme's parent themes' enabled extensions
Extensions' enabled extensions
Last updated