1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- const path = require('path');
- // const proxy_path = 'http://192.168.2.241:80';
- // const proxy_path = 'http://192.168.2.236:88';
- const proxy_path = 'http://192.168.2.236:6060';
- // const proxy_path = 'http://192.168.3.101:5050';
- // const proxy_path = 'http://192.168.3.117:5050';//周铁刚
- // const proxy_path = 'http://192.168.3.113:5050'; //王峰
- module.exports = {
- lintOnSave: false,
- devServer: {
- historyApiFallback: true,
- disableHostCheck: true,
- proxy: {
- '/api': {
- target: proxy_path,
- changeOrigin: true,
- secure: false
- },
- '/demo': {
- target: proxy_path,
- changeOrigin: true,
- secure: false
- },
- '/sys': {
- target: proxy_path,
- changeOrigin: true,
- secure: false
- },
- '/graph': {
- target: proxy_path,
- changeOrigin: true,
- secure: false
- }
- }
- },
- configureWebpack:{
- resolve:{
- alias: {
- '@components': path.resolve(__dirname,'./src/components/'),
- '@less': path.resolve(__dirname,'./src/less/'),
- '@base':path.resolve(__dirname,'./src/components/base/'),
- '@api': path.resolve(__dirname,'./src/api/')
- }
- }
- },
- };
|