|
@@ -16,7 +16,22 @@ module.exports = {
|
|
|
runtimeCompiler: true,
|
|
runtimeCompiler: true,
|
|
|
productionSourceMap: false,
|
|
productionSourceMap: false,
|
|
|
devServer: {
|
|
devServer: {
|
|
|
- publicPath: Setting.publicPath
|
|
|
|
|
|
|
+ publicPath: Setting.publicPath,
|
|
|
|
|
+ port: 1618, //端口号
|
|
|
|
|
+ proxy: {
|
|
|
|
|
+ // "/adminapi": {
|
|
|
|
|
+ '/supplierapi': {
|
|
|
|
|
+ // "target" : "https://www.psgjsc.com" ,//目标接口域名
|
|
|
|
|
+ target: 'https://www.senyinkj.cn', //目标接口域名
|
|
|
|
|
+ ws: true,
|
|
|
|
|
+ changeOrigin: true,
|
|
|
|
|
+ // "changeOrigin" : true, //是否跨域
|
|
|
|
|
+ // "secure" : true ,// 设置支持https协议的代理
|
|
|
|
|
+ // "pathRewrite" : {
|
|
|
|
|
+ // "/adminapi" : "" // rewrite path
|
|
|
|
|
+ // }
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
css: {
|
|
css: {
|
|
|
loaderOptions: {
|
|
loaderOptions: {
|