You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/01/08 02:11:18 UTC
[incubator-echarts-doc] branch master updated: Update
custom-build.md (#151)
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new 6995eb5 Update custom-build.md (#151)
6995eb5 is described below
commit 6995eb562d1e876e96a5cec84d5f24cfed3a58e1
Author: lizhihua <27...@qq.com>
AuthorDate: Fri Jan 8 10:11:12 2021 +0800
Update custom-build.md (#151)
---
zh/tutorial/custom-build.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zh/tutorial/custom-build.md b/zh/tutorial/custom-build.md
index ca692e4..ddd35dc 100644
--- a/zh/tutorial/custom-build.md
+++ b/zh/tutorial/custom-build.md
@@ -66,7 +66,7 @@ node node_modules/echarts/build/build.js --help
+ `--min`:是否压缩文件(默认不压缩),并且去多余的打印错误信息的代码,形成生产环境可用的文件。
+ `--lang <language shortcut or file path>`:是否使用其他语言版本,默认是中文。例如:`--lang en` 表示使用英文,`--lang my/langXX.js` 表示构建时使用 `<cwd>/my/langXX.js` 替代 `echarts/lib/lang.js` 文件。
+ `--sourcemap`:是否输出 source map,以便于调试。
-+ `--format`:输出的格式,可选 `'umb'`(默认)、`'amd'`、`'iife'`、`'cjs'`、`'es'`。
++ `--format`:输出的格式,可选 `'umd'`(默认)、`'amd'`、`'iife'`、`'cjs'`、`'es'`。
既然我们想自定义构建一个只含有饼图的 echarts 文件,我们需要创建一个入口文件,可以命名为 `myProject/echarts.custom.js`,文件里会引用所需要的 echarts 模块:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org