Skip to content

Commit

Permalink
Merge branch 'master' into cn
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/content/configuration/module.md
#	src/content/configuration/node.md
#	src/content/guides/production.md
#	src/content/guides/tree-shaking.md
#	src/content/guides/typescript.md
#	src/content/plugins/context-replacement-plugin.md
  • Loading branch information
dear-lizhihua committed Aug 30, 2017
2 parents 77e7f8f + b5fd614 commit bea97fd
Show file tree
Hide file tree
Showing 13 changed files with 382 additions and 331 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ node_modules
npm-debug.log
build
generated
src/components/Support/support-backers.json
src/components/Support/support-sponsors.json
src/components/StarterKits/starter-kits-data.json
support-backers.json
support-sponsors.json
starter-kits-data.json
.antwar
.idea
1 change: 0 additions & 1 deletion src/components/StarterKits/starter-kits-data.json

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Support/support-backers.json

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Support/support-sponsors.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/content/api/module-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Aside from the module syntaxes described above, webpack also allows a few custom
require.context(directory:String, includeSubdirs:Boolean /* optional, default true */, filter:RegExp /* optional */)
```
Specify a whole group of dependencies using a path to the `directory`, an option to `includeSubdirs`, and a `filter` for more fine grained control of the mdoules included. These can then be easily `resolve`d later on.
Specify a whole group of dependencies using a path to the `directory`, an option to `includeSubdirs`, and a `filter` for more fine grained control of the modules included. These can then be easily resolved later on:
```javascript
var context = require.context('components', true, /\.html$/);
Expand Down
4 changes: 2 additions & 2 deletions src/content/configuration/dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ devServer: {

```bash
http://localhost:9000/
webpack result is served from /build/
content is served from dist/
webpack output is served from /build/
Content not from webpack is served from /path/to/dist/
```

这将给出一些背景知识,就能知道服务器的访问位置,并且知道服务已启动。
Expand Down
9 changes: 5 additions & 4 deletions src/content/configuration/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ contributors:
- skipjack
- jouni-kantola
- jhnns
- dylanonelson
---

这些选项决定了如何处理项目中的[不同类型的模块](/concepts/modules)
Expand Down Expand Up @@ -104,12 +105,12 @@ W> 小心!resource 是文件的_解析_路径,这意味着符号链接的资

## `Rule.exclude`

`Rule.exclude``Rule.resource.exclude` 的简写。详细请查看 [`Rule.resource`](#rule-resource)[`Condition.exclude`](#condition)
`Rule.exclude``Rule.resource.exclude` 的简写。如果你提供了 `Rule.exclude` 选项,就不能再提供 `Rule.resource`详细请查看 [`Rule.resource`](#rule-resource)[`Condition.exclude`](#condition)


## `Rule.include`

`Rule.include``Rule.resource.include` 的简写。详细请查看 [`Rule.resource`](#rule-resource)[`Condition.include`](#condition)
`Rule.include``Rule.resource.include` 的简写。如果你提供了 `Rule.include` 选项,就不能再提供 `Rule.resource`详细请查看 [`Rule.resource`](#rule-resource)[`Condition.include`](#condition)


## `Rule.issuer`
Expand Down Expand Up @@ -188,7 +189,7 @@ parser: {

## `Rule.resource`

[`条件`](#condition)会匹配 resource。在 [`Rule` 条件](#rule-conditions) 中查看详细。
[`条件`](#condition)会匹配 resource。既可以提供 `Rule.resource` 选项,也可以使用快捷选项 `Rule.test``Rule.exclude``Rule.include`[`Rule` 条件](#rule-conditions) 中查看详细。


## `Rule.resourceQuery`
Expand All @@ -210,7 +211,7 @@ A [`Condition`](#condition) matched with the resource query. The condition match

## `Rule.test`

`Rule.test``Rule.resource.test` 的简写。详细请查看 [`Rule.resource`](#rule-resource)[`Condition.test`](#condition)
`Rule.test``Rule.resource.test` 的简写。如果你提供了一个 `Rule.test` 选项,就不能再提供 `Rule.resource`详细请查看 [`Rule.resource`](#rule-resource)[`Condition.test`](#condition)


## `Rule.use`
Expand Down
4 changes: 2 additions & 2 deletions src/content/configuration/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ node: {

`boolean | "mock"`

默认值:`true`
默认值:`"mock"`

选项:

Expand All @@ -87,7 +87,7 @@ node: {

`boolean | "mock"`

默认值:`true`
默认值:`"mock"`

选项:

Expand Down
3 changes: 1 addition & 2 deletions src/content/guides/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ __webpack.config.js__
new CleanWebpackPlugin(['dist']),
new HtmlWebpackPlugin({
title: 'Output Management'
}),
new webpack.HotModuleReplacementPlugin()
})
],
output: {
filename: '[name].bundle.js',
Expand Down
Loading

0 comments on commit bea97fd

Please sign in to comment.