text: const path = require('path');
  module.exports = {
    entry: './src/main.js',
    devtool: 'eval-source-map',
    module: {
      rules: [{
        test: /\.js$/,
        exclude: /\/node_modules\//,
        use: {
          loader: 'babel-loader',
          options: {
            presets: [
              ['@babel/preset-env', { targets: "defaults" }]
            ]
          }
        }
      }, {
        test: /\.css$/,
        use: [
          'style-loader',
          'css-loader'
        ]
      }]
    },
    output: {
      filename: 'main.js',
      path: path.resolve(__dirname, 'dist'),
    },
    devServer: {
      static: path.join(__dirname, 'dist'),
      compress: true,
      port: 8080,
      host: '0.0.0.0',
      allowedHosts: 'all',
      client: {
        webSocketURL: 'auto://0.0.0.0:0/main/ws'
      }
    }
  };
  