const path = require('path'); const frameSrc = path.resolve(__dirname); const baseUrl = '/admin/'; module.exports = { publicPath: baseUrl, outputDir: path.join(frameSrc, '../../admin-web'), productionSourceMap: false, configureWebpack: { resolve: { alias: { '@components': path.join(frameSrc, '/src/components'), '@style': path.join(frameSrc, '/style'), '@lib': path.join(frameSrc, '/lib'), '@mock': path.join(frameSrc, '/mock') } } }, devServer: { port: 3000, proxy: { '/api/': { target: 'http://192.168.3.45:18090' // target: 'http://192.168.0.45:18090' }, '/upload/': { target: 'http://192.168.3.45:9002' // target: 'http://192.168.0.45:18090' } } } };