text: const path = require('path');
  const webpack = require('webpack');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      mode: 'development',
      entry: ['@babel/polyfill', './src/index.tsx', './src/index.css'],
      output: {
          filename: '[name].bundle.js',
          path: path.resolve(__dirname, '../../dist/client'),
          publicPath: '/'
      },
      devtool: 'source-map',
      resolve: {
          extensions: ['.ts', '.tsx', '.js']
      },
      module: {
          rules: [
              {
                  test: /\.(ts|tsx)$/,
                  loader: 'ts-loader',
                  exclude: /(node_modules|bower_components)/
              },
              {
                  test: /\.scss$/,
                  use: [
                      { loader: 'style-loader' },
                      {
                          loader: 'css-loader'
                      },
                      {
                          loader: 'sass-loader?sourceMap',
                          options: {
                              sourceMap: true
                          }
                      }
                  ]
              },
              {
                  test: /\.css$/,
                  use: ['style-loader', 'css-loader']
              },
              {
                  test: /.jpe?g$|.gif$|.png$|.svg$|.woff$|.woff2$|.ttf$|.eot$/,
                  use: [
                      {
                          loader: 'url-loader',
                          options: {
                              limit: 10000
                          }
                      }
                  ]
              }
          ]
      },
      plugins: [
          // new webpack.optimize.OccurrenceOrderPlugin(),
          new webpack.HotModuleReplacementPlugin(),
          new webpack.NoEmitOnErrorsPlugin(),
          new webpack.LoaderOptionsPlugin({
              debug: true
          }),
          new HtmlWebpackPlugin({
              template: './public/index.html',
              inject: 'body',
              filename: 'index.html'
          }),
          new webpack.ProvidePlugin({
              React: 'React',
              react: 'React',
              'window.react': 'React',
              'window.React': 'React',
          }),
      ],
      devServer: {
          port: 8000,
          proxy: {
              '/api/*': {
                  target: 'http://localhost:3000',
              },
          },
          historyApiFallback: true
      },
      'externals': {
      }
  };
  