From: Robert Sesek Date: Mon, 23 Mar 2020 13:45:09 +0000 (-0400) Subject: Specify @hpcc-js/wasm as a contentBase in the devServer so the .wasm is loaded. X-Git-Tag: 1.0.2~4 X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=ecc1b0efab4587dd0a6e9dc1bab1236542b13a9c;p=ustaxviewer.git Specify @hpcc-js/wasm as a contentBase in the devServer so the .wasm is loaded. --- 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 },