diff --git a/docs/source/zh-cn/advanced/plugin.md b/docs/source/zh-cn/advanced/plugin.md index b897b57003..67052cb836 100644 --- a/docs/source/zh-cn/advanced/plugin.md +++ b/docs/source/zh-cn/advanced/plugin.md @@ -414,8 +414,6 @@ module.exports = app => { $ npm i egg-onerror --save ``` -**注意:插件即使是只在 local 运行的,也需要配置为 dependencies 而不是 devDependencies,否则线上 `npm i --production` 时将无法找到插件。** - ### 开启和关闭 在应用的 `${app_root}/config/plugin.js` 文件里配置 diff --git a/docs/source/zh-cn/core/httpclient.md b/docs/source/zh-cn/core/httpclient.md index 607330b82d..7f0eeb804a 100644 --- a/docs/source/zh-cn/core/httpclient.md +++ b/docs/source/zh-cn/core/httpclient.md @@ -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',