In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to set the port number 81 for you in vue-cli3. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Invalid vue-cli3 setting port number (81)
The port number of the project created with vue-cli3 starts at 8080 and is occupied by one in turn, that is to say, 8080 is not used, 8081 is not used, 8081 is not used, and so on.
Haha, because I want to log in, I don't like typing, so I will use the function of the browser to remember the password, the port number will be depressed when the port number changes, and the browser can remember the address, sometimes it needs to enter a longer link, and the back end of our company is port 8080.
At this point, I can only say that I feel bad.
So I have to set a fixed port, well, 81 is my favorite, but the official api setting is invalid.
At first I doubted the code and searched the Internet. Well, it all seemed to be the same, but they set up a lot. I just set up port.
Take a look at webpack-dev-server 's API
Emmm, still no problem, finally found that the setting of 81, the port is still changed, become 1024, very strange, I tried to change to 2000, but it was a success
So, it should be this plug-in that does not allow the port to set a value less than 1024.
Try again. 2001 is still successful.
= =
Hey, hey, it seems that this plug-in does not have the lowest port number, it may be the idea of this guy cli3.
How to modify the port of vue-cli3.0
Create a new vue.config.js file in the root directory
Module.exports = {devServer: {port: 8888, / / Port}, lintOnSave: false / / cancel eslint Verification}
Restart the project ok
This is the end of the article on "what to do if the vue-cli3 setting port number 81 is invalid". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.