const axios_default_ip = process.env.NODE_ENV == 'dev' ? 'http://121.37.173.82:82' : process.env.NODE_ENV == 'test-prd' ? 'http://121.41.102.225:82' //测试服 : process.env.NODE_ENV == 'prd_other' ? 'http://121.37.173.82:82' //贝斯特 : 'http://124.71.176.88:82'; // http://124.71.176.88:882 //江山 // 'http://121.41.102.225:82' :测试 process.env.VUE_APP_BASE_URL = axios_default_ip; module.exports = { publicPath: './', outputDir: 'dist', assetsDir: 'static', indexPath: 'index.html', productionSourceMap: process.env.NODE_ENV === 'development', devServer: { proxy: { '/proxy': { target: axios_default_ip, ws: true, // proxy websockets changeOrigin: true, pathRewrite: { '^/proxy': '', // rewrite path }, }, '/postek/print': { target: 'http://192.168.1.110:888', ws: true, // proxy websockets changeOrigin: true, // pathRewrite: { // '^/postek': '', // rewrite path // }, } }, }, lintOnSave: false, //禁用eslint 便于开发 };