text: var path = require('path')
  var webpack = require('webpack')
  
  const srcDir = path.resolve(__dirname, 'src');
  const nodeModulesDir = path.resolve(__dirname, 'node_modules');
  
  module.exports = {
    entry: {
      app: [
        path.resolve(__dirname, 'src/Game.ts')
      ]
  
    },
    output: {
      path: path.resolve(__dirname, 'dist'),
      publicPath: './dist/',
      filename: 'game.js'
    },
    plugins: [
      new webpack.DefinePlugin({
        __DEV__: JSON.stringify(JSON.parse(process.env.BUILD_DEV || 'false'))
      }),
      new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
      new webpack.optimize.UglifyJsPlugin({
        drop_console: true,
        minimize: true,
        output: {
          comments: false
        }
      })
    ],
    module: {
      rules: [
        { test: /\.json$/i, loader: 'json-loader' },
        { test: /\.ts$/i, loader: 'awesome-typescript-loader', exclude: nodeModulesDir }
      ]
    },
    node: {
      fs: 'empty',
      net: 'empty',
      tls: 'empty'
    },
    resolve: {
      extensions: ['.ts', '.js'],
      modules: [srcDir, nodeModulesDir],
    }
  }
  