Skip to content

Commit

Permalink
docs: apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
andylizi committed Sep 6, 2021
1 parent af0b1fe commit e41637d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions docs/guide/api-plugin.md
Expand Up @@ -418,6 +418,7 @@ A function can also be used for more precise control:
```js
apply(config, { command }) {
// apply only on build but not for SSR
return command === 'build' && !config.build.ssr
}
```
Expand Down
8 changes: 0 additions & 8 deletions docs/guide/using-plugins.md
Expand Up @@ -82,14 +82,6 @@ export default defineConfig({
})
```

A function can also be used for more precise control:

```js
apply(config, { command }) {
return command === 'build' && !config.build.ssr
}
```

## Building Plugins

Check out the [Plugins API Guide](./api-plugin.md) for documentation about creating plugins.

0 comments on commit e41637d

Please sign in to comment.