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

docs: improve #1061

Merged
merged 3 commits into from
Jun 28, 2017
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
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` 时将无法找到插件。**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接干掉不妥,应该说只有配置在 local 的,才能 devdep。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里只是不用特别注明这句话了而已吧


### 开启和关闭

在应用的 `${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