From 34186c4a06be2b6db663d211d469990dece3b8a5 Mon Sep 17 00:00:00 2001 From: luicfer Date: Tue, 27 Jun 2017 16:02:37 +0800 Subject: [PATCH 1/2] docs: improve --- docs/source/zh-cn/core/httpclient.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', From 266ff0a3f4de3d65b66571f0628f06cb1cc8af5c Mon Sep 17 00:00:00 2001 From: luicfer Date: Tue, 27 Jun 2017 16:49:39 +0800 Subject: [PATCH 2/2] docs: improve MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去掉本地调试插件必须--save的说明,已经支持的插件的local配置 --- docs/source/zh-cn/advanced/plugin.md | 2 -- 1 file changed, 2 deletions(-) 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` 文件里配置