text: const path = require('path');
  const webpack = require('webpack');
  const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
  const ExtractTextPlugin = require('extract-text-webpack-plugin');
  const { CheckerPlugin } = require('awesome-typescript-loader');
  
  module.exports = {
      context: path.join(__dirname, '../client'),
      devtool: 'source-map',
      entry: [
          './src/index.tsx',
          './resources/style/main.scss'
      ],
      output: {
          path: path.join(__dirname, '../server/bin/public'),
          filename: './js/index.js',
          publicPath: '/'
      },
      resolve: {
          extensions: ['.ts', '.tsx', '.js', '.jsx']
      },
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: {
                      loader: 'babel-loader',
                      options: {
                          presets: ['react', 'es2015', 'stage-1']
                      }
                  }
              },
              {
                  test: /\.scss$/,
                  use: ExtractTextPlugin.extract({
                      fallback: 'style-loader',
                      use: ['css-loader', 'sass-loader']
                  })
              },
              {
                  test: /\.(png|jpg|gif)$/,
                  use: [
                      {
                          loader: 'file-loader',
                          options: {
                              outputPath: 'images/'
                          }
                      }
                  ]
              },
              {
                  test: /\.tsx?$/,
                  loader: 'awesome-typescript-loader'
              },
              {
                  test: /\.tsx?$/,
                  enforce: 'pre',
                  loader: 'tslint-loader',
                  options: {
                      configFile: './tslint.json',
                      typeCheck: true
                  }
              }
          ]
      },
      plugins: [
          new webpack.DefinePlugin({
              'process.env': {
                  'NODE_ENV': JSON.stringify('production')
              }
          }),
          new UglifyJSPlugin({
              sourceMap: true,
              test: /\.tsx($|\?)/i
          }),
          new ExtractTextPlugin('css/main.css'),
          new CheckerPlugin()
      ]
  };
  