justadudewhohacks / opencv4nodejs

Nodejs bindings to OpenCV 3 and OpenCV 4
MIT License
4.92k stars 813 forks source link

Reduce the node_modules package size from ~2GB #687

Open YaronHershkovitz opened 4 years ago

YaronHershkovitz commented 4 years ago

node_modules size is too big. The size of the opencv4nodejs is 424MB The size of the opencv-build is 1.49GB How can i reduce this enormous size to a more reasonable one?

jazozaya commented 4 years ago

I have the same question.

I'm currently working on a docker image that will be deployed to Raspberry Pis.

The node_modules folder blows up my image size.

fakob commented 4 years ago

Not sure if it helps, but these are the folders I remove from opencv-build when I package my electron app for osx and for windows