module.exports = { publicPath: "/entpc", productionSourceMap: false, lintOnSave: false, css:{ loaderOptions:{ sass: { prependData: `@import "@/style/global_variable.scss";`// 全局引入 }, } }, devServer: { open: true, port: "8086", hot: true, disableHostCheck: true, proxy: { "/entbase": { // target: "https://app2-jytest.jianyu360.cn", // target: "http://127.0.0.1:815", // target:'http://192.168.20.51:815', target:'http://192.168.20.241:815', changeOrigin: true, ws: true, pathRewrite: { "^/entbase": "/entbase" } }, "/entniche": { // target: "https://app2-jytest.jianyu360.cn", target: "http://192.168.20.241:812", // target: "http://127.0.0.1:812", // target:'http://192.168.20.214:813', changeOrigin: true, ws: true, pathRewrite: { "^/entniche": "/entniche" } }, "^/entdataexport": { // target: "http://ent-xzh.jianyu360.cn", // target: "https://app2-jytest.jianyu360.cn", // target: "http://192.168.20.241:813/entniche", // target: "http://127.0.0.1:813", // target:'http://192.168.20.51:815/entbase', // target:'http://192.168.20.51:813/entdataexport', target:'http://192.168.20.241:813', // target:'http://192.168.20.241:812', changeOrigin: true, ws: true, pathRewrite: { "^/entdataexport": "/entdataexport" } }, } } }