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

翻译完成 plugins/dll-plugin.md #361

Merged
merged 5 commits into from
Aug 15, 2017
Merged

Conversation

fa93hws
Copy link

@fa93hws fa93hws commented Aug 10, 2017

No description provided.

@@ -1,5 +1,5 @@
---
title: DllPlugin
title: DLL插件 (DllPlugin)

Choose a reason for hiding this comment

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

这里就用 DllPlugin 吧

@@ -11,66 +11,66 @@ related:
url: https://github.com/webpack/webpack/tree/master/examples/explicit-vendor-chunk/README.md
---

The `DllPlugin` and `DllReferencePlugin` provide means to split bundles in a way that can drastically improve build time performance.
`DLL插件 (DLLPlugin)` 和 `DLL引用插件 (DLLReferencePlugin)` 用某种方法实现了分割 bundles ,同时还大大提升了编译的速度。

Choose a reason for hiding this comment

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

这里的英文括号(前面不加空格,表示是前面中文的对应英文。
bundles ,和中文符号之间的空格去掉,距离太大不美观。

具体见这里 #20 翻译要求

@@ -11,66 +11,66 @@ related:
url: https://github.com/webpack/webpack/tree/master/examples/explicit-vendor-chunk/README.md
---

The `DllPlugin` and `DllReferencePlugin` provide means to split bundles in a way that can drastically improve build time performance.
`DLLPlugin` 和 `DLLReferencePlugin` 用某种方法实现了分割 bundles,同时还大大提升了编译的速度。

Choose a reason for hiding this comment

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

分割->拆分
编译->构建
一般 compile 是编译,build 是构建


```javascript
new webpack.DllPlugin(options)
```

Creates a `manifest.json` which is written to the given `path`. It contains mappings from require and import requests, to module ids. It is used by the `DllReferencePlugin`.
在给定 `地址(path)` 的地方创建一个名为 `manifest.json` 的文件。 这个文件包含了从 `require` 和 `import` 请求到模块 id 的映射。 `DLLReferencePlugin` 也会用到这个文件。

Choose a reason for hiding this comment

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

在给定 地址(path) 的地方创建一个名为 manifest.json 的文件->在给定 path 路径下,创建一个名为 manifest.json 的文件
request 是个专用名词,可以考虑不翻译。



## Usage
## 使用(Usage)

Choose a reason for hiding this comment

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

Usage 统一为用法吧。

@@ -95,13 +95,13 @@ new webpack.DllReferencePlugin({
```


## Examples
## 例子(Examples)

Choose a reason for hiding this comment

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

Examples 统一为示例


[Vendor](https://github.com/webpack/webpack/tree/master/examples/dll) and [User](https://github.com/webpack/webpack/tree/master/examples/dll-user)

_Two separate example folders. Demonstrates scope and context._
_两个单独的用例,用来分别演示作用域(scope) 和上下文(context)_

Choose a reason for hiding this comment

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

少了中文句号。


T> Multiple `DllPlugins` and multiple `DllReferencePlugins`.
T> 多个 `DllPlugins` `DllReferencePlugins`.


## References

Choose a reason for hiding this comment

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

107行翻译为引用参考

@dear-lizhihua dear-lizhihua merged commit bee1601 into docschina:cn Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants