text: const HtmlWebpackPlugin = require("html-webpack-plugin");
  const path = require('path');
  
  module.exports = {
    entry: "./src/index.js",
    plugins: [
      new HtmlWebpackPlugin({
        title: "My App",
        template: "./src/index.js",
      }),
    ],
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'bundle.js'
    },
    module: {
      rules: [
        {
          test: /\.ts(|x)$/,
          use: [
            {
              loader: "ts-loader",
            },
          ],
          exclude: /node_modules/
        },
        {
          test: /\.s[ac]ss$/,
          use: [
            {
              loader: "style-loader",
            },
            {
              loader: "css-loader",
            },
            {
              loader: "sass-loader",
            },
          ]
        }
      ],
    },
    resolve: {
        extensions: ['.ts', '.tsx', '.js', '.jsx'],
        modules: [path.resolve(__dirname, 'src'), 'node_modules']
    }
  };