janus编译前端模块

返回
Author Avatar
钢翼
2022-06-27
编程
228
git clone https://github.com/meetecho/janus-gateway.git
# 编译旧版本,所以切换了旧分支
git checkout v0.11.4 
# 切换到npm文件夹
cd npm
# 安装依赖
yarn install
# 打包
yarn rollup --f es --o janus.js

执行完成后,将npm文件夹下的janus.d.tsjanus.js拷贝到你的目标项目下。