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://192.168.4.1:7001' target: 'http://127.0.0.1:18070' }, '/api/naf/': { target: 'http://localhost:8002' // target: 'http://192.168.4.1:7001' }, '/tyylfiles/': { target: 'http://localhost:8009', pathRewrite: { '^/tyylfiles/': '/tyyl/' } // target: 'http://192.168.4.1:7001' }, '/files/tyyl/': { target: 'http://localhost:8006' } } } }