text: const path = require("path");
  
  module.exports = {
    mode: "development",
    entry: "./src/index.tsx",
    output: {
      path: path.resolve(__dirname, "dist"),
      filename: "index.js",
      publicPath: "/dist/"
    },
    devtool: "inline-source-map",
    devServer: {
      open: true,
      openPage: "index.html",
      contentBase: path.join(__dirname, "public"),
      watchContentBase: true,
      port: 3000
    },
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          use: "ts-loader"
        }
      ]
    },
    resolve: {
      extensions: [".ts", ".tsx", ".js", ".json"]
    }
  };
  