text: const HTMLWebpackPlugin = require('html-webpack-plugin')
  
  module.exports = {
    entry: './src/index.ts',
    output: {
      filename: 'app.js'
    },
    resolve: {
      extensions: ['.js', '.ts', 'tsx']
    },
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          use: [
            {
              loader: 'ts-loader'
            }
          ],
          exclude: /node_modules/
        }
      ]
    },
    plugins: [
      new HTMLWebpackPlugin({
        template: './src/tpl/index.html'
      })
    ]
  }