-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running the dev server on a specified port #679
Comments
As specified in the Vue-CLI documentation, you must pass |
I have also tried doing that through the command line and in package.json but it always starts on the default. |
Oh sorry I think the problem I'm having is actually not that Vue app doesn't take the specified port, but that the webpack extension reloader is always launched on the default port 9090. I'm trying to run 2 extensions in dev mode, but the second can't start because the port 9090 is already in use. |
I have the same problem, but my 9090 port is not occupied, also indicating that it is occupied |
I solved this issue by modifying the webpack config and running the extension reloader on a different port. In vue.config.js:
However, for some reason, having this in vue.config.js gets in the way of building the extension for production, so comment it out when building for production. |
Describe the bug
I'm trying to run the development server on a port other than the default. I have tried setting the port by modifying the serve script in package.json and adding the port, setting it in .env, and also in vue.config.js but none works.
To Reproduce
in vue.config.js:
The text was updated successfully, but these errors were encountered: