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 pluginapp.register(plugin); // Register multiple plugins sequentiallyapp.register(plugin1, plugin2, ...);