Skip to content

Plugins

Plugin is a way for third-party code to modify the current app instance.

const plugin = {
plug(app) {
// Do something with the app instance
app.use(someMiddleware);
}
};

To register plugins:

// Register one plugin
app.register(plugin);
// Register multiple plugins sequentially
app.register(plugin1, plugin2, ...);