Skip to content

Commit

Permalink
docs(v2): fix typo in lifecycle api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Nov 30, 2019
1 parent 97491c5 commit 0e23e4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/docs/lifecycle-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ For example, this plugin below modify the webpack config to transpile `.foo` fil

```js {5-12}
// docusaurus-plugin/src/index.js
module.exports = function(context, options, utils) {
module.exports = function(context, options) {
return {
name: 'docusaurus-plugin',
configureWebpack(config, isServer) {
configureWebpack(config, isServer, utils) {
const {getCacheLoader} = utils;
config.modules.rules.push({
test: /\.foo$/,
Expand Down Expand Up @@ -190,7 +190,7 @@ Example:

```js {5-10}
// docusaurus-plugin/src/index.js
module.exports = function(context, options, utils) {
module.exports = function(context, options) {
return {
name: 'docusaurus-plugin',
async postBuild({siteConfig = {}, routesPaths = [], outDir}) {
Expand All @@ -211,7 +211,7 @@ Example:

```js {5-12}
// docusaurus-plugin/src/index.js
module.exports = function(context, options, utils) {
module.exports = function(context, options) {
return {
name: 'docusaurus-plugin',
extendCli(cli) {
Expand Down Expand Up @@ -262,7 +262,7 @@ Example:

```js {5-29}
// docusaurus-plugin/src/index.js
module.exports = function(context, options, utils) {
module.exports = function(context, options) {
return {
name: 'docusaurus-plugin',
injectHtmlTags() {
Expand Down

0 comments on commit 0e23e4c

Please sign in to comment.