Current location - Quotes Website - Signature design - Quickly build a local development environment based on HTTPS
Quickly build a local development environment based on HTTPS

why do local developers use HTTPS?

because there are many Web API that can only be used in HTTPS environment. For example, the Clipboard API and events(.ext) contains the following contents:

Finally, an SSL certificate is issued for the domain name *.yourdomain.com

The generated certificate and private key file are copied to the corresponding directory

Suppose a devServer using Webpack is configured as follows:

Configure the HOST file:

Restart the service:

Change another subdomain.