1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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': ''
- }
- },
- }
- },
- 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: {
- resolve: {
- alias: {
- 'vue$': 'vue/dist/vue.esm.js'
- }
- }
- }
- };
|