text: const path = require("path");
  // const HtmlWebpackPlugin = require("html-webpack-plugin");
  const { CleanWebpackPlugin } = require("clean-webpack-plugin");
  // const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
  const { CheckerPlugin } = require("awesome-typescript-loader");
  
  module.exports = {
    mode: "development",
    entry: "./src/index.ts",
    devtool: "inline-source-map",
    output: {
      filename: "[name].bundle.js",
      path: path.resolve(__dirname, "dist"),
    },
    plugins: [
      new CleanWebpackPlugin({
        cleanStaleWebpackAssets: false,
      }),
      // new HtmlWebpackPlugin({
      //   title: "Lowercase",
      //   template: "_templates_/index.html",
      //   inject: "body",
      // }),
      new CheckerPlugin(),
      // new UglifyJsPlugin({
      //   uglifyOptions: {
      //     compress: {
      //       warnings: false,
      //     },
      //     sourceMap: true,
      //     minimize: true,
      //   },
      // }),
    ],
    resolve: {
      extensions: [".ts", ".tsx", ".js", ".jsx"],
    },
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          loader: "awesome-typescript-loader",
        },
        { test: /\.js$/, loader: "babel-loader" },
      ],
    },
  };
  