text: var HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      entry: './src/index.tsx',
      output: {
          filename: 'index_bundle.js',
          path: __dirname + "/dist"
      },
      devServer: {
          proxy: { '/api/*': 'http://localhost:3001' }
      },
      module: {
          rules: [
              {
                  test: /\.tsx?$/,
                  loader: 'awesome-typescript-loader',
                  exclude: /node_modules/,
              },
              {
                  enforce: 'pre',
                  test: /\.js$/,
                  loader: "source-map-loader"
              },
              {
                  enforce: 'pre',
                  test: /\.tsx?$/,
                  use: "source-map-loader"
              },
              {   test: /\.css$/, loader: "style-loader!css-loader" },
              {
                  test: /\.scss$/,
                  use: [{
                      loader: "style-loader" // creates style nodes from JS strings
                  }, {
                      loader: "css-loader" // translates CSS into CommonJS
                  }, {
                      loader: "sass-loader" // compiles Sass to CSS
                  }]
              }
          ]
      },
      resolve: {
          extensions: [".tsx", ".ts", ".js"]
      },
      devtool: 'source-map',
      plugins: [
          new HtmlWebpackPlugin({
              template: __dirname + '/src/index.html',
              filename: 'index.html',
              inject: 'body'
          })
      ]
  };
  