xeokit / sdk

Next-generation alpha-status xeokit viewer in development
https://xeokit.github.io/sdk/docs/api/index.html
GNU Affero General Public License v3.0
18 stars 10 forks source link

chore: add optional dependency for canvas package #28

Closed DhivinX closed 5 months ago

DhivinX commented 5 months ago

Writing a script to automatically install GTK is too complicated and I spent too much time on it, and you still have to install VS C++, etc. However, I found another solution, it's about optionalDependency in package.json, if it fails to install the package from there, then everything will work normally.

https://docs.npmjs.com/cli/v10/configuring-npm/package-json#optionaldependencies