compose-html --versioncompose-html startcompose-html build- env 环境变量,KEY值替换模板中的{{KEY}}
- 所有的模板路径都是由根目录出发
- 默认读取的文件路径为跟目录的 index.html
- 配置文件为 .compose-html.config.json 或 .compose-html.config.js;优先级 .compose-html.config.json > .compose-html.config.js
# 以demo为项目根目录
bin/compose-html start --root demo# 以dist为输出目录
bin/compose-html build --output dist# 指定打包的源
bin/compose-html build --output dist --root demo# 打开默认浏览器
bin/compose-html start --open- ROOT_PATH 项目的根目录路径
- OUTPUT_PATH 项目的输出路径
环境变量在 process.env 中获取