Reputation: 20016
How can I serve Vue CLI project in a specific port always, say 8888
? I tried the following options.
package.json
to vue-cli-service serve --port 8888
Updating the devServer
option in vue.config.js
. I modified the same to
devServer: {
port: 8888
}
Serving project specifying port option in serve command like npm run serve -- --port 8888
None of the above mentioned steps brought me a luck. Can I know how this to be done in the right way?
Upvotes: 0
Views: 1998
Reputation: 150
Try to update your version latest 3.11.0
Here is the screenshot
I hope it will work for you now
Upvotes: 2