0.2.5 • Published 3 years ago
@hotel-cli/build v0.2.5
@hotel-cli/build
通过gulp编译小程序
Usage
const build = require('@hotel-cli/build');
直接编译-(目录默认为init时,所生成的目录)
hotel-cli build [entryPath] [distPath]
输入路径编译- 可指定小程序项目路径进行编译。当不指定时,默认使用 init时,CLI自己生成的项目路径
hotel-cli build [entryPath] // 小程序项目路径
只指定编译输出路径。 可查看编译后的源码
hotel-cli build --distPath [distPath] // 编译输出路径
指定输出目录为当前目录下dist文件夹
hotel-cli build -c
示例
hotel-cli build -e xcx/entry -t xcx/dist