Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Improve documentation for plugin configuration #40

Merged
merged 1 commit into from
Sep 27, 2017
Merged
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
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,16 @@ config
.init((Plugin, args) => new Plugin(...args));
```

#### Config plugins: removing

```js
config.plugins.delete(name)
```

#### Config resolve plugins

```js
// Backed at config.plugins
// Backed at config.resolve.plugins
config.resolve.plugin(name) : ChainedMap
```

Expand All @@ -617,22 +623,28 @@ config.resolve
.use(WebpackPlugin, args)
```

#### Config plugins: modify arguments
#### Config resolve plugins: modify arguments

```js
config.resolve
.plugin(name)
.tap(args => newArgs)
```

#### Config plugins: modify instantiation
#### Config resolve plugins: modify instantiation

```js
config.resolve
.plugin(name)
.init((Plugin, args) => new Plugin(...args))
```

#### Config resolve plugins: removing

```js
config.resolve.plugins.delete(name)
```

#### Config node

```js
Expand Down