const CopyWebpackPlugin = require("copy-webpack-plugin"); const path = require('path'); module.exports = { entry: "./bootstrap.ts", devtool: 'inline-source-map', module: { rules: [ { test: /\.tsx?$/, use: 'ts-loader', exclude: /node_modules/, }, ], }, resolve: { extensions: [ '.tsx', '.ts', '.js' ], }, output: { path: path.resolve(__dirname, "dist"), filename: 'bundle.js', }, mode: "development", plugins: [ new CopyWebpackPlugin(['index.html']) ], };