docs: correct plugin example filename (#7026)

* Correect Wrong file name

The file name inside the my-plugin folder is index.js .

* Update plugins.md

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
mehdim 2022-04-06 20:17:06 -04:00 committed by GitHub
parent 103ea04661
commit 49424f5057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ module.exports = {
Then in the folder `my-plugin`, you can create an `index.js` such as this:
```js title="my-plugin.js"
```js title="my-plugin/index.js"
module.exports = async function myPlugin(context, options) {
// ...
return {