From 6a07c8ef6d74342afbb396ca525c6e198b07fbe2 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Wed, 7 Apr 2021 14:27:14 +0800 Subject: [PATCH] chore(extra-plugin): statement plugin tag --- lib-extra/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib-extra/README.md b/lib-extra/README.md index a2fae3a17..4127b53bc 100644 --- a/lib-extra/README.md +++ b/lib-extra/README.md @@ -19,6 +19,15 @@ e.g. For an Erlang plugin named `plugin_foo`: }. ``` +Note: The `-emqx_plugin(?MODULE)` attribute should be added to +`_app.erl` file to indicate that this is an EMQ X Broker plugin. + +For example: +```erlang +%% plugin_foo_app.erl +-emqx_plugin(?MODULE) +``` + ## Build a release ```