summary refs log tree commit diff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-28 06:18:44 +0200
committerRory& <root@rory.gay>2025-05-28 06:18:44 +0200
commit0801158d7da95c1af8fe7f93b605508b7fecbc0f (patch)
treebbe86e543af02246ba9e7fbe027af2ebf10bf84d /webpack.config.js
parentInit package.json (diff)
downloadnodejs-final-assignment-0801158d7da95c1af8fe7f93b605508b7fecbc0f.tar.xz
Add basic dependencies
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js24
1 files changed, 24 insertions, 0 deletions
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