123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- const path = require('path');
- var systemConfig = require('./public/systemConf.js');
- function resolve(dir) {
- return path.join(__dirname, '..', dir);
- }
- module.exports = {
- devServer: {
- port: 8081,
- proxy: {
- '/baseService': {
-
-
- target: 'http://develop.ysbdtp.com',
-
- changeOrigin: true,
- ws: true,
- pathRewrite: {
- '^/baseService': ''
- }
- },
- '/sysGraphService': {
-
-
- target: 'http://develop.ysbdtp.com/adm-diagram',
-
- changeOrigin: true,
- pathRewrite: {
- '^/sysGraphService': ''
- }
- },
- '/loginRequest': {
-
-
- target: 'http://develop.ysbdtp.com/adm-server',
-
- changeOrigin: true,
- ws: true,
- pathRewrite: {
- '^/loginRequest': ''
- }
- },
- '/middleService': {
-
-
- target: 'http://develop.ysbdtp.com/adm-middleware',
-
- changeOrigin: true,
- ws: true,
- pathRewrite: {
- '^/middleService': ''
- }
- },
- }
- },
- pages: {
- index: {
- entry: 'src/main.js',
- template: 'public/index.html',
- filename: 'index.html'
- }
- },
- publicPath: '/' + systemConfig.baseRouteUrl,
-
- outputDir: systemConfig.baseRouteUrl,
-
- assetsDir: 'public',
-
- indexPath: 'index.html',
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- configureWebpack: {
- devtool: '#source-map',
- resolve: {
- alias: {
- 'vue$': 'vue/dist/vue.esm.js',
- 'jQuery': 'jquery/dist/jquery.min'
- }
- }
- }
- };
|