This time I will show you how live-server builds a local server and automatically refreshes. Live-server builds a local server and automatically refreshes. What are the precautions?. The following is a practical case. Let’s take a look. .
1, Installation
$ sudo npm install -g live-server
2. Use the following command to automatically open index.html under the current directory
$ live-server
I believe you have mastered the method after reading the case in this article. Please come for more exciting information. Pay attention to other related articles on php Chinese website!
Recommended reading:
How to reload the routing page in AngularJS
The sub-routes in the bottom navigation bar of vue.js are not displayed How to deal with
#Why is element-ui binding @keyup event invalid?
The above is the detailed content of How to set up a local server and automatically refresh live-server. For more information, please follow other related articles on the PHP Chinese website!