12345678910111213141516171819202122232425262728293031323334 |
- const path = require('path');
- module.exports = {
- publicPath: `/${process.env.VUE_APP_ROUTER}`,
- outputDir: 'customeruser',
- 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'),
- },
- },
- });
- },
- devServer: {
- port: '8001',
- proxy: {
- '/files': {
- target: 'http://broadcast.waityou24.cn',
- },
- '/capi': {
- target: 'http://192.168.1.19:9106',
- changeOrigin: true,
- ws: false,
- },
- '/ws': {
- target: 'http://192.168.1.19:15674',
- ws: true,
- },
- },
- },
- };
|