Skip to content

Commit

Permalink
docs: improve plugin dependencies (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
luicfer authored and dead-horse committed Jun 28, 2017
1 parent 4322212 commit 0052351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docs/source/zh-cn/advanced/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,6 @@ module.exports = app => {
$ npm i egg-onerror --save
```

**注意:插件即使是只在 local 运行的,也需要配置为 dependencies 而不是 devDependencies,否则线上 `npm i --production` 时将无法找到插件。**

### 开启和关闭

在应用的 `${app_root}/config/plugin.js` 文件里配置
Expand Down
4 changes: 2 additions & 2 deletions docs/source/zh-cn/core/httpclient.md
Original file line number Diff line number Diff line change
Expand Up @@ -620,11 +620,11 @@ console.log(result.res.timing);
先安装和开启插件:

```bash
$ npm i egg-development-proxyagent --save
$ npm i egg-development-proxyagent --save-dev
```

```js
// config/plugin.js
// config/plugin.local.js
exports.proxyagent = {
enable: true,
package: 'egg-development-proxyagent',
Expand Down

0 comments on commit 0052351

Please sign in to comment.