-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
Deploy preview for cn-webpack ready! Built with commit fb304d7 |
|
||
Files to include. | ||
包括的文件。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
包括的文件。 | |
要被处理的文件。 |
|
||
Files to exclude. | ||
不包括的文件。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不包括的文件。 | |
不被处理的文件。 |
|
||
Allowing to filter which chunks should be uglified (by default all chunks are uglified). | ||
Return `true` to uglify the chunk, `false` otherwise. | ||
允许过滤哪些块可以被压缩(默认所有的块都会被压缩)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
允许过滤哪些块可以被压缩(默认所有的块都会被压缩)。 | |
判断哪些 chunk 可以被压缩(默认所有的 chunk 都会被压缩)。 |
|
||
Allows you to override default cache keys. | ||
允许重写默认的缓存键。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
允许重写默认的缓存键。 | |
允许重写默认的缓存 key。 |
|
||
Default cache keys: | ||
默认的缓存键: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
默认的缓存键: | |
默认的缓存 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文本指向提取的文件,将会被添加到原始文件的顶部。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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` 软件包选项 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* 你的 `uglify-js` 软件包选项 */ | |
/* `uglify-js` package 的相关配置 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
问题不大,修改下
@QC-L需要我这边怎么修改,修改后重新提pr吗? |
@jefferyE |
不需要,在你对应的分支修改,就会体现在 pr 上 |
@QC-L Commit suggestion我这边没发操作,已经在对应分支已经修改了。 |
@jefferyE 那就是你没勾选允许,不应该啊... |
docs(cn): translate src/content/plugins/uglifyjs-webpack-plugin.md to Chinese.
@QC-L
@dear-lizhihua
@lcxfs1991
@yuqingc