diff --git a/preview.yml b/preview.yml new file mode 100644 index 0000000000000000000000000000000000000000..f8b13fcf817404982d5edaf1487007687d419caa --- /dev/null +++ b/preview.yml @@ -0,0 +1,10 @@ +# preview.yml +autoOpen: true # 打开工作空间时是否自动开启所有应用的预览 +apps: + - port: 80 # 应用的端口 + run: npm install --registry=https://registry.npm.taobao.org && npm run dev # 应用的启动命令 + command: # 使用此命令启动服务,且不执行run + root: ./ # 应用的启动目录 + name: wxmaregist # 应用名称 + description: wxmaregist # 应用描述 + autoOpen: true # 打开工作空间时是否自动开启预览(优先级高于根级 autoOpen)