Skip to content

docs(cn): translate src/content/plugins/uglifyjs-webpack-plugin.md #780

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

Merged
merged 3 commits into from
Jun 27, 2020

Conversation

jefferyE
Copy link

docs(cn): translate src/content/plugins/uglifyjs-webpack-plugin.md to Chinese.

@QC-L
@dear-lizhihua
@lcxfs1991
@yuqingc

@netlify
Copy link

netlify bot commented Jun 23, 2020

Deploy preview for cn-webpack ready!

Built with commit fb304d7

https://deploy-preview-780--cn-webpack.netlify.app


Files to include.
包括的文件。
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
包括的文件
要被处理的文件


Files to exclude.
不包括的文件。
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
不包括的文件
不被处理的文件


Allowing to filter which chunks should be uglified (by default all chunks are uglified).
Return `true` to uglify the chunk, `false` otherwise.
允许过滤哪些块可以被压缩(默认所有的块都会被压缩)。
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
允许过滤哪些块可以被压缩(默认所有的块都会被压缩)。
判断哪些 chunk 可以被压缩(默认所有的 chunk 都会被压缩)。


Allows you to override default cache keys.
允许重写默认的缓存键。
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
允许重写默认的缓存键
允许重写默认的缓存 key


Default cache keys:
默认的缓存键:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
默认的缓存键
默认的缓存 key

The banner text that points to the extracted file and will be added on top of the original file.
Can be `false` (no banner), a `String`, or a `Function<(string) -> String>` that will be called with the filename where extracted comments have been stored.
Will be wrapped into comment.
banner文本指向提取的文件,将会被添加到原始文件的顶部。
Copy link
Member

@QC-L QC-L Jun 25, 2020

Choose a reason for hiding this comment

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

Suggested change
banner文本指向提取的文件,将会被添加到原始文件的顶部
指向提取文件的 banner 文本,将会被添加到源文件的顶部

@@ -690,7 +690,7 @@ module.exports = {
minify(file, sourceMap) {
// https://github.com/mishoo/UglifyJS2#minify-options
const uglifyJsOptions = {
/* your `uglify-js` package options */
/* 你的 `uglify-js` 软件包选项 */
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/* 你的 `uglify-js` 软件包选项 */
/* `uglify-js` package 的相关配置 */

Copy link
Member

@QC-L QC-L left a comment

Choose a reason for hiding this comment

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

问题不大,修改下

@QC-L QC-L mentioned this pull request Jun 26, 2020
73 tasks
@jefferyE
Copy link
Author

@QC-L需要我这边怎么修改,修改后重新提pr吗?

@QC-L
Copy link
Member

QC-L commented Jun 27, 2020

@jefferyE
image
点这里可以直接合并

@QC-L
Copy link
Member

QC-L commented Jun 27, 2020

@QC-L需要我这边怎么修改,修改后重新提pr吗?

不需要,在你对应的分支修改,就会体现在 pr 上

@jefferyE
Copy link
Author

@QC-L Commit suggestion我这边没发操作,已经在对应分支已经修改了。

@QC-L
Copy link
Member

QC-L commented Jun 27, 2020

@jefferyE 那就是你没勾选允许,不应该啊...

@QC-L QC-L merged commit d765526 into docschina:cn Jun 27, 2020
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.

2 participants