Feature/d3 graphviz (#564)

added graphviz diagrams via d3-graphviz
added craco and webpack-copy-plugin to copy wasm files

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Philip Molares 2020-09-15 09:26:44 +02:00 committed by GitHub
parent e6ee1aff50
commit 5972932d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 448 additions and 49 deletions

14
craco.config.js Normal file
View file

@ -0,0 +1,14 @@
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
webpack: {
plugins: [
new CopyPlugin({
patterns: [
{ from: 'node_modules/@hpcc-js/wasm/dist/graphvizlib.wasm', to: 'static/js' },
{ from: 'node_modules/@hpcc-js/wasm/dist/expatlib.wasm', to: 'static/js' }
],
}),
],
},
}