| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 'use strict'
- const path = require('path')
- module.exports = {
- publicPath: '/',
- outputDir: 'dist',
- assetsDir: 'static',
- lintOnSave: false,
- productionSourceMap: false,
- devServer: {
- port: 8080,
- open: true,
- proxy: {
- '/api': {
- target: 'http://localhost:8083',
- changeOrigin: true,
- pathRewrite: {
- '^/api': '/api'
- }
- },
- '/producer': {
- target: 'http://localhost:8081',
- changeOrigin: true,
- pathRewrite: {
- '^/producer': '/api'
- }
- },
- '/monitor': {
- target: 'http://localhost:8094',
- changeOrigin: true,
- pathRewrite: {
- '^/monitor': '/api/kafka/monitor'
- }
- }
- }
- },
- configureWebpack: {
- resolve: {
- alias: {
- '@': path.resolve(__dirname, 'src')
- }
- }
- }
- }
|