vue-cli 4.0 打包后项目是空白的

在vue.config.js文件中加入如下配置:
module.exports = {
    devServer : {
        open:true,
        port:8089,
        host:"127.0.0.1",
        // 设置代理
        proxy:{
            '/api':{
                target:'',
                changeOrigin:true,
                pathRewrite:{
                    '^/api':''
                }
            }
        }
    },
    publicPath:'./',
    outputDir:'dist',
    assetsDir:'static'
}

评论