diff webpack.config.ts @ 0:a9bc14e22e36

start
author drewp@localhost
date Tue, 03 Dec 2019 21:27:52 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webpack.config.ts	Tue Dec 03 21:27:52 2019 -0800
@@ -0,0 +1,18 @@
+import path from "path";
+import webpack from 'webpack';
+
+const config: webpack.Configuration = {
+    mode: "production",
+    entry: './src/streamed-graph.ts',
+    output: {
+        filename: 'streamed-graph.bundle.js',
+        path: path.resolve(__dirname, 'build')
+    }, 
+    module: {
+        rules: [
+            { test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ },
+        ]
+    }
+};
+
+export default config;
\ No newline at end of file