You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
978 B
44 lines
978 B
# rzyc-weapp
|
|
|
|
## 微信小程序
|
|
|
|
编译命令
|
|
|
|
```plaintext
|
|
# yarn
|
|
$ yarn dev:weapp
|
|
$ yarn build:weapp
|
|
|
|
# npm script
|
|
$ npm run dev:weapp
|
|
$ npm run build:weapp
|
|
|
|
# 仅限全局安装
|
|
$ taro build --type weapp --watch
|
|
$ taro build --type weapp
|
|
|
|
# npx 用户也可以使用
|
|
$ npx taro build --type weapp --watch
|
|
$ npx taro build --type weapp
|
|
|
|
# watch 同时开启压缩
|
|
$ set NODE_ENV=production && taro build --type weapp --watch # CMD
|
|
$ NODE_ENV=production taro build --type weapp --watch # Bash
|
|
```
|
|
|
|
|
|
|
|
#### 小程序开发者工具
|
|
|
|
下载并打开[微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html),然后选择**项目根目录**进行预览。
|
|
|
|
需要注意开发者工具的项目设置:
|
|
|
|
- 需要设置关闭 ES6 转 ES5 功能,开启可能报错
|
|
- 需要设置关闭上传代码时样式自动补全,开启可能报错
|
|
- 需要设置关闭代码压缩上传,开启可能报错
|
|
|
|
## 描述
|
|
|
|
ylt-main 驿莱特主分支
|