text: const path = require('path');
  const CopyPlugin = require('copy-webpack-plugin');
  
  module.exports = {
      mode: "development",
      entry: {
          app: "./src/Application.jsx",
          OverlayRenderer: "./src/OverlayRenderer.js"
      },
      output: {
          path: path.resolve(__dirname, './test'),
          filename: '[name].js',
          library: "[name]",
          libraryTarget: "umd"
      },
      optimization: { minimize: false },
      externals: {
          "react": "React",
          "react-dom": "ReactDOM"
      },
      plugins: [
          new CopyPlugin([
              { from: 'node_modules/react/umd/react.development.js', to: 'react.js' },
              { from: 'node_modules/react-dom/umd/react-dom.development.js', to: 'react-dom.js' }
          ])
      ],
      module: {
          rules: [
              {
                  test: /\.jsx?$/,
                  exclude: /(node_modules)/,
                  use: {
                      loader: 'babel-loader',
                      options: {
                          presets: [
                              "@babel/preset-env"
                          ],
                          plugins: [
                              "@babel/plugin-transform-react-jsx",
                              "@babel/plugin-proposal-class-properties",
                              "@babel/plugin-proposal-object-rest-spread",
                              ["@babel/plugin-transform-runtime", { "regenerator": true }]
                          ]
                      }
                  }
              },
              {
                  test: /\.css$/,
                  use: ['style-loader', 'css-loader']
              },
              {
                  test: /\.scss$/,
                  use: [
                      { loader: 'style-loader' },
                      { loader: 'css-loader' },
                      { loader: 'sass-loader', options: { sourceMap: true } }
                  ]
              },
              {
                  test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
                  use: [
                      {
                          loader: 'file-loader',
                          options: {
                              name: '[name].[ext]',
                              outputPath: 'fonts/'
                          }
                      }
                  ]
              }
          ]
      }
  }