vue更改端口

vue.config.jsvue

module.exports = {
    baseUrl: '/',
    outputDir: 'dist',
    chainWebpack: () => {},
    configureWebpack: () => {},
    devServer: {
        open: process.platform === 'darwin',
        host: '127.0.0.1',
        port: 9099,
        https: false,
        hotOnly: false,
        proxy: null, // 設置代理
        before: app => {}
    },
}

相關文章
相關標籤/搜索