as the title: how to configure the domain name with webpack devServer, and use the domain name to access the local server without ip.
as the title: how to configure the domain name with webpack devServer, and use the domain name to access the local server without ip.
you can map any domain name to any IP by modifying the native HOSTS file. For example,
127.0.0.1 www.example.com
this resolves the www.example.com domain name to 127.0.0.1 .
The main way to implement is to modify the hosts mentioned above.
can use SwitchHosts to modify
the Emperor is right. Just set your local IP to the domain name you want to configure in the HOSTS file. Then change host to your configured domain name in config.js.
Previous: How to fix the problem caused by deleting D disk?
Next: Vue uses the breadcrumb component of Element UI and how to modify the style of its font.
npm run dev: and the port number is still 8080, not 5555, so ask God for advice on where the problem is. node version is 8.10.0 npm version is 5.6.0 ...
each time you execute npm start, it empties the dist folder and writes back to the dist folder. But the lack of external file references after packaging, the need to execute npm build, alone is very troublesome, how to easily execute these two commands?...