Combining vtkjs with electron using webpack
A hello world example referenced from https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html
- Run
npm install
on root directory - Run
npm run build:dev
- Run
npm run dev-server
for web usage ornpm run electron
for electron build - To serve a release build, run follow command:
- Windows:
npm run packager-win
- MacOS:
npm run packager-mac
- Linux:
npm run packager-linux