123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- 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',
- 'jQuery': 'jquery/dist/jquery.min'
- }
- }
- }
- };
|