module.exports = {
    // 打包文件配置
    publicPath: "/",
    assetsDir: "static",
    lintOnSave: false,
    devServer: {
        // overlay: { // 让浏览器 overlay 同时显示警告和错误
        //     warnings: true,
        //     errors: true,
        // },
        // hotOnly: true,
        // open: false, // npm run serve后自动打开页面
        // https: false, // https:{type:Boolean}
        // host: "0.0.0.0", // 匹配本机IP地址(默认是0.0.0.0)
        // port: 8989, // 开发服务器运行端口号
        proxy: {
            '/app': { //代理的名字
                // target:'http://111.229.30.246:3111/',
                target: 'http://172.16.1.254:3111/',  
                // target:'http://www.weather.com.cn/',
                ws: true,
                changeOrigin: true,
                pathRewrite:{
                    '^/app':'',
                }
            },
            '/aps': { //代理的名字
                target:'http://221.231.99.214:99/',
                ws: true,
                changeOrigin: true,
                pathRewrite:{
                    '^/aps':'',
                }
            },
            '/pdf':{
                target:'http://172.16.1.254:3111/',
                ws: true,
                changeOrigin: true,
                pathRewrite:{
                    '^/pdf':'',
                }
            },
        }
    }
}