Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(v2): replace heading position #3086

Merged
merged 1 commit into from
Jul 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions website/docs/lifecycle-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ module.exports = function (context, options) {

Plugins should use the data loaded in `loadContent` and construct the pages/routes that consume the loaded data (optional).

## `async routesLoaded(routes)`

Plugins can modify the routes that were generated by all plugins. `routesLoaded` is called after `contentLoaded` hook.

### `content`

`contentLoaded` will be called _after_ `loadContent` is done, the return value of `loadContent()` will be passed to `contentLoaded` as `content`.
Expand Down Expand Up @@ -230,6 +226,10 @@ module.exports = function(context, options) {
};
```

## `async routesLoaded(routes)`

Plugins can modify the routes that were generated by all plugins. `routesLoaded` is called after `contentLoaded` hook.

## `configureWebpack(config, isServer, utils)`

Modifies the internal webpack config. If the return value is a JavaScript object, it will be merged into the final config using [`webpack-merge`](https://github.com/survivejs/webpack-merge). If it is a function, it will be called and receive `config` as the first argument and an `isServer` flag as the argument argument.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ module.exports = function (context, options) {

Plugins should use the data loaded in `loadContent` and construct the pages/routes that consume the loaded data (optional).

## `async routesLoaded(routes)`

Plugins can modify the routes that were generated by all plugins. `routesLoaded` is called after `contentLoaded` hook.

### `content`

`contentLoaded` will be called _after_ `loadContent` is done, the return value of `loadContent()` will be passed to `contentLoaded` as `content`.
Expand Down Expand Up @@ -130,6 +126,10 @@ module.exports = function(context, options) {
};
```

## `async routesLoaded(routes)`

Plugins can modify the routes that were generated by all plugins. `routesLoaded` is called after `contentLoaded` hook.

## `configureWebpack(config, isServer, utils)`

Modifies the internal webpack config. If the return value is a JavaScript object, it will be merged into the final config using [`webpack-merge`](https://github.com/survivejs/webpack-merge). If it is a function, it will be called and receive `config` as the first argument and an `isServer` flag as the argument argument.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ module.exports = function (context, options) {

Plugins should use the data loaded in `loadContent` and construct the pages/routes that consume the loaded data (optional).

## `async routesLoaded(routes)`

Plugins can modify the routes that were generated by all plugins. `routesLoaded` is called after `contentLoaded` hook.

### `content`

`contentLoaded` will be called _after_ `loadContent` is done, the return value of `loadContent()` will be passed to `contentLoaded` as `content`.
Expand Down Expand Up @@ -130,6 +126,10 @@ module.exports = function(context, options) {
};
```

## `async routesLoaded(routes)`

Plugins can modify the routes that were generated by all plugins. `routesLoaded` is called after `contentLoaded` hook.

## `configureWebpack(config, isServer, utils)`

Modifies the internal webpack config. If the return value is a JavaScript object, it will be merged into the final config using [`webpack-merge`](https://github.com/survivejs/webpack-merge). If it is a function, it will be called and receive `config` as the first argument and an `isServer` flag as the argument argument.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ module.exports = function (context, options) {

Plugins should use the data loaded in `loadContent` and construct the pages/routes that consume the loaded data (optional).

## `async routesLoaded(routes)`

Plugins can modify the routes that were generated by all plugins. `routesLoaded` is called after `contentLoaded` hook.

### `content`

`contentLoaded` will be called _after_ `loadContent` is done, the return value of `loadContent()` will be passed to `contentLoaded` as `content`.
Expand Down Expand Up @@ -130,6 +126,10 @@ module.exports = function(context, options) {
};
```

## `async routesLoaded(routes)`

Plugins can modify the routes that were generated by all plugins. `routesLoaded` is called after `contentLoaded` hook.

## `configureWebpack(config, isServer, utils)`

Modifies the internal webpack config. If the return value is a JavaScript object, it will be merged into the final config using [`webpack-merge`](https://github.com/survivejs/webpack-merge). If it is a function, it will be called and receive `config` as the first argument and an `isServer` flag as the argument argument.
Expand Down