text: var path = require('path');
  var HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      mode: 'development',
      entry: './app.ts',
      devtool: 'inline-source-map',
      output: {
          path: path.resolve(__dirname, 'dist'),
          filename: 'bundle.js'
      },
      module: {
          rules: [
              {
                test: /\.tsx?$/,
                use: 'ts-loader',
                exclude: /node_modules/
              }
          ]
      },
      resolve: {
          extensions: [ '.tsx', '.ts', '.js' ]
      },
      plugins: [
          new HtmlWebpackPlugin({
              hash: true,
              template: './index.html',
              filename: './index2.html' //relative to root of the application
          })
     ]
  };