1234567891011121314151617181920212223242526272829303132 |
- const path = require('path');
- const common = path.resolve(__dirname, '../common');
- module.exports = {
- publicPath: `/${process.env.VUE_APP_ROUTER}`,
- outputDir: process.env.VUE_APP_ROUTER,
- productionSourceMap: false,
- configureWebpack: (config) => {
- Object.assign(config, {
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src'),
- '@c': path.resolve(__dirname, './src/components'),
- '@a': path.resolve(__dirname, './src/assets'),
- '@common': common,
- },
- },
- });
- },
- devServer: {
- port: '8001',
- proxy: {
- '/files': {
- target: 'http://sps.fwedzgc.com:8090',
- },
- '/psychosis/api': {
- target: 'http://sps.fwedzgc.com:8090', //http://sps.fwedzgc.com:8090 http://192.168.43.105:6200
- changeOrigin: true,
- ws: false,
- },
- },
- },
- };
|