diff webpack.config.js @ 20:9ec3cbc8791a

build is running, but no tests, and lots of code is disabled
author drewp@bigasterisk.com
date Fri, 13 Dec 2019 01:18:00 -0800
parents
children 09080dc809ed
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webpack.config.js	Fri Dec 13 01:18:00 2019 -0800
@@ -0,0 +1,38 @@
+const path = require("path");
+const webpack = require('webpack');
+const PnpWebpackPlugin = require('pnp-webpack-plugin');
+
+module.exports = {
+    entry: ['./src/streamed-graph.ts'],
+    output: {
+        filename: 'streamed-graph.bundle.js',
+        path: path.resolve(__dirname, 'build')
+    },
+    module: {
+        rules: [
+            {
+                test: /\.ts$/,
+                loader: require.resolve('ts-loader'),
+                options: PnpWebpackPlugin.tsLoaderOptions({
+                    // ... regular options go there ...
+                })
+            },
+            { test: /\.css$/i, use: ['file-loader'] },
+        ]
+    },
+    devtool: 'source-map',
+    resolve: {
+        plugins: [
+            PnpWebpackPlugin,
+        ],
+    },
+    resolveLoader: {
+        plugins: [
+            PnpWebpackPlugin.moduleLoader(module),
+        ],
+    },
+    watchOptions: {
+        ignored: /node_modules/,
+        poll: 200
+    }
+};