text: const path = require('path')
  const HtmlWebpackPlugin = require('html-webpack-plugin')
  
  module.exports = {
      mode: "production",
      entry: "./src/js/main.ts",
      output: {
          filename: "js/bundle.js",
          path: path.resolve(__dirname, "dist")
      },
      module: {
          rules: [
              {
                  test: /\.tsx?$/,
                  use: "ts-loader",
                  exclude: /node_modules/
              },
              {
                  test: /\.css$/,
                  use: ['style-loader', 'css-loader'],
                  exclude: /node_modules/
              }
          ]
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: "./src/template/index.html"
          })
      ],
      resolve: {
          extensions: ['.tsx', '.ts', '.js']
      },
  };