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

Update module.md #422

Closed
wants to merge 2 commits into from
Closed
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: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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人,必须邀请进入)
Expand Down
7 changes: 3 additions & 4 deletions src/content/configuration/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,16 @@ 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) 只在特定的文件执行。

Choose a reason for hiding this comment

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

没看明白这是什么意思。

`issuser` 可以理解为「引入模块资源的文件名」。  
比如下面的例子,在 `index.js` 文件里引入 `a.js` 模块,这个时候 `issuer` 就是 `index.js` 文件的路径。  

__index.js__

``` 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.

Choose a reason for hiding this comment

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

这里怎么少了一行



## `Rule.loader`

`Rule.loader` 是 `Rule.use: [ { loader } ]` 的简写。详细请查看 [`Rule.use`](#rule-use) 和 [`UseEntry.loader`](#useentry)。
Expand Down