From ecc1b0efab4587dd0a6e9dc1bab1236542b13a9c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 23 Mar 2020 09:45:09 -0400 Subject: [PATCH] Specify @hpcc-js/wasm as a contentBase in the devServer so the .wasm is loaded. --- public/graphvizlib.wasm | 1 - src/ustaxviewer.ts | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 120000 public/graphvizlib.wasm diff --git a/public/graphvizlib.wasm b/public/graphvizlib.wasm deleted file mode 120000 index bd3c318..0000000 --- a/public/graphvizlib.wasm +++ /dev/null @@ -1 +0,0 @@ -../node_modules/@hpcc-js/wasm/dist/graphvizlib.wasm \ No newline at end of file diff --git a/src/ustaxviewer.ts b/src/ustaxviewer.ts index 897b092..6317df3 100755 --- a/src/ustaxviewer.ts +++ b/src/ustaxviewer.ts @@ -79,7 +79,10 @@ const compiler = webpack({ }, devServer: { - contentBase: PUBLIC, + contentBase: [ + PUBLIC, + path.dirname(require.resolve('@hpcc-js/wasm')), + ], port: 8488 }, -- 2.22.5