feat: improves plugin writability

This commit is contained in:
James
2021-07-29 07:15:47 -04:00
parent dbc4115644
commit a002b7105f
3 changed files with 5 additions and 2 deletions

View File

@@ -78,6 +78,8 @@ export default config;
Payload Plugins are executed _after_ the incoming config is validated, sanitized, and default options are merged in.
However, after all plugins are executed, the full config with all plugins will be re-sanitized.
## Simple example
Here is an example for how to automatically add a `lastModifiedBy` field to all Payload collections using a Plugin written in TypeScript.