| | |
| | | |
| | | const outputDir = process.env.VUE_APP_CONTEXT_PATH.substring(1, process.env.VUE_APP_CONTEXT_PATH.length) |
| | | // const proxyMiddleware = require('http-proxy-middleware'); |
| | | module.exports = { |
| | | publicPath: './', |
| | | outputDir: outputDir || 'web', |
| | | assetsDir: 'static', |
| | | lintOnSave: false, |
| | | devServer: { |
| | | // before(app) { |
| | | // app.use( |
| | | // [process.env.VUE_APP_API_PREFIX], |
| | | // proxyMiddleware({ |
| | | // target: process.env.VUE_APP_API, |
| | | // changeOrigin: true, |
| | | // pathRewrite: { |
| | | // [`^${[process.env.VUE_APP_API_PREFIX]}`]: '' |
| | | // } |
| | | // }) |
| | | // ); |
| | | // }, |
| | | host: '0.0.0.0', |
| | | port: 10086, |
| | | proxy: { |