text: const path = require('path')
  
  const HtmlWebpackPlugin = require('html-webpack-plugin')
  
  module.exports = {
    entry: './public/index.ts',
    resolve: {
      extensions: ['.ts', '.js']
    },
    output: {
      path: path.join(__dirname, '/dist'),
      filename: 'bundle.min.js'
    },
    module: {
      rules: [
        {
          test: /\.ts$/,
          loader: 'ts-loader'
        }
      ]
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: './public/index.html'
      })
    ]
  }
  