while running the yarn serve I don't what to display the port no from the URL. Now, this is showing like https://example.com:8080. I want to access them from https://example.com.
vue.config.js
module.exports = {
chainWebpack: config => {
config.plugins.delete('prefetch');
},
devServer: {
host: 'example.com',
https: false,
port: 8080,
public: 'example.com'
},
}
The
yarn servecommand opens this port to serve the app locally (for testing / developing).If you want to create your application, you probably want to run:
yarn run buildSee SO - yarn build command
You can then upload the generated files. Look for a
buildordistdirectory or similar.You can add
publicPathto your configuration:You can try this and see if it works.
See webpack configuration docs