| 123456789101112131415161718192021222324252627282930 |
- module.exports = {
- publicPath: './',
- assetsDir: 'static',
- productionSourceMap: false,
- devServer: {
- port: 8089
- // proxy: {
- // '/api': {
- // target: 'http://10.10.10.49:9541', // 实际跨域请求的API地址
- // secure: false, // https请求则使用true
- // ws: false,
- // changeOrigin: true, // 跨域
- // // 请求地址重写 http://front-end/api/login ⇒ http://api-url/login
- // pathRewrite: {
- // '^/api': '/'
- // }
- // },
- // '/video': {
- // target: 'http://www.kwsaas.cc', // 实际跨域请求的API地址
- // secure: false, // https请求则使用true
- // ws: false,
- // changeOrigin: true, // 跨域
- // // 请求地址重写 http://front-end/api/login ⇒ http://api-url/login
- // pathRewrite: {
- // '^/video': '/'
- // }
- // }
- // }
- }
- };
|