text: const poolConfig = require('./pool.config');
  
  module.exports = {
      style: {
          postcss: {
              plugins: [require('tailwindcss'), require('autoprefixer')],
          },
      },
      devServer: {
          historyApiFallback: true,
          proxy: {
              //   '/core-rpc': {
              //     target: poolConfig.testnet.core.RPC,
              //     changeOrigin: true,
              //     pathRewrite: {
              //       '^/core-rpc': '',
              //     },
              //   },
              // hypnos
              '/core-rpc': {
                  target: poolConfig.mainnet.core.RPC,
                  changeOrigin: true,
                  pathRewrite: {
                      '^/core-rpc': '',
                  },
              },
              // '/eSpace-rpc': {
              //     target: poolConfig.testnet.eSpace.RPC,
              //     changeOrigin: true,
              //     pathRewrite: {
              //         '^/eSpace-rpc': '',
              //     },
              // }
              '/eSpace-rpc': {
                  target: poolConfig.mainnet.eSpace.RPC,
                  changeOrigin: true,
                  pathRewrite: {
                      '^/eSpace-rpc': '',
                  },
              }
          },
      },
      webpack: {
          configure: webpackConfig => {
              const scopePluginIndex = webpackConfig.resolve.plugins.findIndex(
                  ({ constructor }) => constructor && constructor.name === 'ModuleScopePlugin'
              );
  
              webpackConfig.resolve.plugins.splice(scopePluginIndex, 1);
              return webpackConfig;
          }
      }
  }
  