0.5.8 • Published 27 days ago

compose-html v0.5.8

Weekly downloads
6
License
MIT
Repository
github
Last release
27 days ago

命令行工具

是否运行成功

compose-html --version

启动server

compose-html start

构建

compose-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 中获取

0.5.8

27 days ago

0.5.7

28 days ago

0.5.6

4 years ago

0.5.4

4 years ago

0.5.5

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

5 years ago