1. Register on the WeChat public platform
I chose to register with QQ mailbox, because my 163 mailbox is bound to WeChat, so I cannot use registration.
Log in to this page.
2. Npm packaging (assuming your computer has installed nodeJS)
Select your project, then go to the root directory of the project
Execute npm install
and then execute npm run build
After successful execution, the project directory /dist/build/mp-weixin file will be generated
3. Use WeChat developer tools to open the project
Log in with WeChat first, and then choose to import the project
Then click OK to import successfully!
4. After opening, you will see the applet, and you can also choose to preview or debug on the real machine to test it.
When there is no problem in the test, you can click to upload and send it to the background of the WeChat public platform!
5. WeChat public platform background release
After submitting, it will be displayed in the development version first, and you can also choose to be a trial version, which can be used by scanning with the WeChat applet, but it is a trial version!
Then click Submit for review in the development version, fill in the content, it is best to get a few screenshots or videos of the applet, the chance of passing the review is higher. Will be published to the review version.
Then submit it in the review version, and the WeChat public platform will review it, usually very quickly, and you can publish it to the online version after passing the review. You can use WeChat to search for your Mini Program name.