Skip to content

Commit a3ea3ec

Browse files
committed
Fix example
1 parent ae945ee commit a3ea3ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ You can use it to do some real magic:
205205
```js
206206
module.exports = function (ctx) {
207207
if (check(ctx.webpack.resourcePath)) {
208-
return plugins1;
208+
return { plugins: plugins1 };
209209
} else {
210-
return plugins2;
210+
return { plugins: plugins2 };
211211
}
212212
}
213213
```

0 commit comments

Comments
 (0)