From 4c4954ab8039f0770c44fd840e4a402b590dd290 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 28 May 2025 06:18:44 +0200 Subject: Add basic dependencies --- webpack.config.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..7d17f45 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,24 @@ +module.exports = { + + // Currently we need to add '.ts' to the resolve.extensions array. + resolve: { + extensions: ['.ts', '.tsx', '.js', '.jsx'] + }, + + // Source maps support ('inline-source-map' also works) + devtool: 'source-map', + mode: 'development', + + // Add the loader for .ts files. + module: { + rules: [ + { + test: /\.tsx?$/, + loader: 'ts-loader' + } + ] + }, + devServer: { + static: './dist', + } +}; \ No newline at end of file -- cgit 1.5.1