text: var webpack = require('webpack');
  var CopyWebpackPlugin = require('copy-webpack-plugin');
  var path = require('path');
  
  module.exports = {
    entry: [
      './src/app.tsx',
    ],
    // Output the bundled JS to dist/app.js
    output: {
      filename: 'app.js',
      path: path.resolve(__dirname, 'dist')
    },
     module: {
      loaders: [{
        test: /\.ts(x?)$/,
        exclude: /node_modules/,
        loader: 'babel-loader?presets[]=es2016&presets[]=es2015&presets[]=react!ts-loader'
      }, {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel',
        query: {
          presets: ['es2016', 'es2015', 'react']
        }
      }, { test: /\.css/,    loader: 'style-loader!css-loader' },]
    },
    devtool: 'source-map',
    devServer: {
      contentBase: path.resolve(__dirname, 'dist'),
      inline: true
    },
    plugins: [
          new CopyWebpackPlugin([
              { from: 'src/index.html' }
          ])
      ]
  };