const path = require('path') const baseUrl = '/yl-admin' const frameSrc = path.resolve(__dirname) module.exports = { publicPath: baseUrl, productionSourceMap: false, configureWebpack: { resolve: { alias: { '@frame': frameSrc, '@naf': path.join(frameSrc, '/naf'), '@lib': path.join(frameSrc, '/lib') } } }, devServer: { port: 4000, proxy: { '/ws': { target: 'http://192.168.0.45:15674' // target: 'http://192.168.4.1:7001' }, '/api/': { // target: 'http://192.168.0.81:8001' target: 'http://127.0.0.1:9001' // target: 'http://127.0.0.1:18070' }, '/naf/': { // target: 'http://127.0.0.1:18070' target: 'http://127.0.0.1:9002' }, // 上传路径 '/filesPath/': { target: 'http://localhost:18070' // target: 'http://192.168.4.1:7001' } } } }