648540858
2023-02-01 2b1f7a47394363e95deb4dfa0f1c67d41e747f7f
web_src/config/index.js
@@ -12,14 +12,14 @@
    assetsPublicPath: '/',
    proxyTable: {
      '/debug': {
        target: 'http://localhost:18080',
        target: 'http://localhost:38080',
        changeOrigin: true,
        pathRewrite: {
          '^/debug': '/'
        }
      },
      '/static/snap': {
        target: 'http://localhost:18080',
        target: 'http://localhost:38080',
        changeOrigin: true,
        // pathRewrite: {
        //   '^/static/snap': '/static/snap'
@@ -29,11 +29,13 @@
    },
    // Various Dev Server settings
    host: 'localhost', // can be overwritten by process.env.HOST
    host:"127.0.0.1",
    useLocalIp: false, // can be overwritten by process.env.HOST
    port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
    autoOpenBrowser: false,
    errorOverlay: true,
    notifyOnErrors: true,
    hot: true,//自动保存
    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-