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
|