Skip to content

Commit 74244c5

Browse files
authored
Merge pull request #1446 from strapi/plugins-config-fix
Improve 'Create a plugin' steps
2 parents 702dbec + 8fa8c18 commit 74244c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/developer-docs/latest/development/plugins-development.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Strapi provides a [command line interface (CLI)](/developer-docs/latest/develope
2020
2. Run `yarn strapi generate` or `npm run strapi generate` in a terminal window to start the interactive CLI.
2121
4. Choose "plugin" from the list, press Enter, and give the plugin a name in kebab-case (e.g. `my-plugin`)
2222
5. Choose either `JavaScript` or `TypeScript` for the plugin language.
23-
6. Enable the plugin by adding it to the [plugins configurations](/developer-docs/latest/setup-deployment-guides/configurations/optional/plugins.md) file:
23+
6. Create a plugins configuration file if one does not already exist: `./config/plugins.js` or `./config/plugins.ts` for TypeScript projects.
24+
7. Enable the plugin by adding it to the [plugins configurations](/developer-docs/latest/setup-deployment-guides/configurations/optional/plugins.md) file:
2425

2526
<code-group>
2627

@@ -56,6 +57,7 @@ Strapi provides a [command line interface (CLI)](/developer-docs/latest/develope
5657

5758

5859
```
60+
5961
</code-block>
6062

6163
</code-group>

0 commit comments

Comments
 (0)