1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  | const port = 5555 // dev port 
 |  // eslint-disable-next-line import/order 
 |  // const VueLoaderPlugin = require('vue-loader/lib/plugin'); 
 |  let proxyApi = process.env.VUE_APP_BASE_API 
 |    
 |  // let printApi = process.env.VUE_APP_PRINT_API 
 |  module.exports = { 
 |    transpileDependencies: ['@jiaminghi/data-view'], 
 |    publicPath: '/', 
 |    outputDir: 'dist', 
 |    assetsDir: 'static', 
 |    lintOnSave: false, 
 |    // lintOnSave: false, 
 |    productionSourceMap: false, 
 |    devServer: { 
 |      port, 
 |      open: false, 
 |      overlay: { 
 |        warnings: true, 
 |        errors: true 
 |      }, 
 |      proxy: { 
 |        '/wms': { 
 |          target: proxyApi, // 对应自己的接口 
 |          changeOrigin: true, 
 |          ws: true, 
 |          pathRewrite: { 
 |            '^/wms': '' 
 |          } 
 |        } 
 |      } 
 |    } 
 |  } 
 |  
  |