【发布时间】:2021-11-20 11:06:20
【问题描述】:
在运行yarn serve 时,我没有从 URL 中显示端口号。现在,这显示为https://example.com:8080。我想从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'
},
}
【问题讨论】:
标签: vue.js vue-component port javascript-framework