Our website can only be opened in WeChat, or in WeChat developer tools.
Every time you modify a page, you must submit it to SVN. Then refresh in the developer tools to see the effect. Too much trouble.
How do you develop on WeChat?
Is there any way to debug locally?
I used the developer tools to open the local one and got a white screen.
The website can be opened in WeChat or in WeChat developer tools, so you can verify and debug it
The website developed for WeChat is not very different from an ordinary web website, and why does it require svn submission to see the effect? Can't I debug it locally to see the effect?
1. Build a browser with the same core as WeChat.
2. Debug the static page effect locally.
3. Upload to the server side.
Write an automation with gulp, open a local server, and then open the webpage in the WeChat developer tools. Moreover, the automation written by gulp can also help you refresh the page every time you make a modification
WeChat developer tools allow you to view web page effects in real time.
Why is the screen white? You need to comment out the part of the code that caused the screen to appear blank. After the changes are completed, submit it to WeChat and then remove the comments
//------------------------------------
Make a port forwarding so that the public network can also Just access your local server. This was also the case for me before. To receive callbacks from WeChat payment, I modified it locally and then uploaded it to the server for testing again. Big trouble, ngrok
In the end I used this https://www.ngrok.cc/, it’s a fool’s errand to use. However, the free tunnel delay is close to 5 seconds.
Use WeChat developer tools