packaging a nodejs c++ shared lib

Viewed 579

I made a nodejs shared library and now I want to package it in order to deploy it. I would like being able to use it with angular 2 application packaged thanks to webpack.

the shared lib is located in a folder build/Release.

how to proceed to package it nicely in webpack ? or is it a particular package.json declaration ?

having a look at nodejs documentation, dll names are using extension .node (https://nodejs.org/api/addons.html#addons_loading_addons_using_require)

webpack node-loader may help ? https://webpack.js.org/loaders/node-loader/

I will use server side rendering , otherwise that won't be possible.

Regards, Steph

1 Answers
Related