From 500508a734df23069eea44cb996ae260d178f2e0 Mon Sep 17 00:00:00 2001 From: davidpkj Date: Tue, 13 Dec 2022 15:02:28 +0100 Subject: Add: TS & WP config --- webpack.config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 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..c5b488f --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,22 @@ +const path = require("path"); + +module.exports = { + mode: "development", + entry: "./src/index.ts", + output: { + filename: "index.js", + path: path.resolve(__dirname, "dist"), + }, + module: { + rules: [ + { + test: /\.tsx?$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + resolve: { + extensions: ['.tsx', '.ts', '.js'], + }, +}; \ No newline at end of file -- cgit v1.2.3