12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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://medical.cc-lotus.info/'
- },
- '/naf/': {
- target: 'http://medical.cc-lotus.info/'
- // target: 'http://127.0.0.1:9002'
- },
- // 上传路径
- '/filesPath/': {
- target: 'http://localhost:18070'
- // target: 'http://192.168.4.1:7001'
- }
- }
- }
- }
|