From 69de43a33c4dc1db81e2d9594df01b97aa2fa471 Mon Sep 17 00:00:00 2001 From: QC-L Date: Sat, 16 Dec 2017 21:34:38 +0800 Subject: [PATCH 1/2] update: git merge -> git rebase --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a7cc545215d3..19341f6d16ca 100755 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ - **[(必读)印记中文翻译流程(一):仓库和分支介绍](http://mp.weixin.qq.com/s/_ricIlWhDbRZW-CmH0Ik5w )** - **(必读)感谢 @QC-L 同学简洁易懂的配图** -![webpack.js.org](http://p0w5uqw6b.bkt.clouddn.com/image/png/webpack%E7%BF%BB%E8%AF%91%E6%B5%81%E7%A8%8B%E5%9B%BE.png) +![webpack.js.org](http://p0w5uqw6b.bkt.clouddn.com/image/png/webpack-process.png) - 印记中文翻译QQ群(群号:492361223) - 印记中文翻译微信群(群主:@wuwangbufu002。人数超过100人,必须邀请进入) From 9c540ef0b8e6cfe12856dece90c05bb504a37161 Mon Sep 17 00:00:00 2001 From: friday Date: Sun, 17 Dec 2017 13:12:20 +0800 Subject: [PATCH 2/2] Update module.md --- src/content/configuration/module.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/content/configuration/module.md b/src/content/configuration/module.md index da2de560fdbc..a2a5120b9d54 100755 --- a/src/content/configuration/module.md +++ b/src/content/configuration/module.md @@ -115,7 +115,9 @@ W> 小心!resource 是文件的_解析_路径,这意味着符号链接的资 ## `Rule.issuer` -A [`Condition`](#condition) to match against the module that issued the request. In the following example, the `issuer` for the `a.js` request would be the path to the `index.js` file. +使用 `Rule.issuer`,使某个模块 [loader 规则](#condition) 只在特定的文件执行。 +`issuser` 可以理解为「引入模块资源的文件名」。   +比如下面的例子,在 `index.js` 文件里引入 `a.js` 模块,这个时候 `issuer` 就是 `index.js` 文件的路径。   __index.js__ @@ -123,9 +125,6 @@ __index.js__ import A from './a.js' ``` -This option can be used to apply loaders to the dependencies of a specific module or set of modules. - - ## `Rule.loader` `Rule.loader` 是 `Rule.use: [ { loader } ]` 的简写。详细请查看 [`Rule.use`](#rule-use) 和 [`UseEntry.loader`](#useentry)。