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': '' } } } } }