电商平台移动端前端
微信开发者服务端请点击:电商平台移动端微信开发者服务端
react + antd-mobile + webpack
- 将本仓库代码克隆到本地
git clone https://github.com/Junior2Ran/superMall.git
- 安装npm依赖包
cd .\superMall
npm install
- 本地服务器预览可以通过
npm run server
然后访问localhost:8080
来查看本地效果
- 针对线上环境,首先打包
npm run build
然后找到文件目录下的dist
文件夹,即是打包过后的内容(一个index.html
文件,一个js
文件夹)
PS.暂时images
文件夹无法打包到dist
内,需要手动复制粘贴build
目录下或src/static
目录下的images
文件夹到dist
内,同时build
目录和src/static
目录下的文件也只能手动同步。
- 上传到线上服务器,部署到公众号
详细操作请访问:supermallDemo说明文档
将打包好的文件布置在supermallDemo
项目中对应的位置,上传更新后的supermallDemo
到github,然后在服务端pull下代码。