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?