Skip to content

Commit

Permalink
Clarify optional plugins in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilwanner committed Apr 16, 2018
1 parent fbdc740 commit 7d51d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Any direct [next.js configuration](https://github.com/zeit/next.js#custom-config
### Optional plugins

If a plugin should only get loaded when it is used, you can use the `optional` helper function.
This can be useful if the plugin is only in the `devDependencies` and so you only want to apply it during `PHASE_DEVELOPMENT_SERVER`.
This can especially be useful if the plugin is only in the `devDependencies` and so may not be available in all phases.
If you don't use the `optional` helper in this case, you would get an error.

```javascript
Expand Down

0 comments on commit 7d51d6d

Please sign in to comment.