# uniapp打包
## weapp
1、清空配置变量
![](https://img.kancloud.cn/26/4c/264c05bd4868f55c30104b5a0fdd3b6f_520x185.png)
```
baseUrl: "",
imgUrl: "",
shareDomain: "",
privateKey: ``
```
2、清空微信小程序AppId
![](https://img.kancloud.cn/fd/5c/fd5cb42e12f9f5ad7160f99201e8cfeb_933x669.png)
#
3、编译微信小程序代码
![](https://img.kancloud.cn/c1/1b/c11be2a76f10aa7af81437b35c66e7d9_871x455.png)
#
4、打开unpackage\dist\dev\mp-weixin目录
![](https://img.kancloud.cn/d6/46/d646e6fa5f78afc58d645231c547161a_382x183.png)
![](https://img.kancloud.cn/81/25/81257bfcaa328598e00a4a0ac1ef9f6c_725x327.png)
#
5、根目录压缩
![](https://img.kancloud.cn/e4/07/e4076ba9109b262b2cfbfd0f8b0d211e_738x344.png)
#
## 源码
1、清空config.js配置
![](https://img.kancloud.cn/26/4c/264c05bd4868f55c30104b5a0fdd3b6f_520x185.png)
#
2、清空微信小程序AppId
![](https://img.kancloud.cn/fd/5c/fd5cb42e12f9f5ad7160f99201e8cfeb_933x669.png)
#
3、删除unpackage文件夹
#
4、根目录压缩
![](https://img.kancloud.cn/ee/67/ee67571e65eb4b233a5737b67fbf668e_648x403.png)