You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in a comment on #86, it looks like osc.js can be used with webpack. However, we don't currently provide a simple set of instructions in the README explaining how to do so.
I'm not a webpack user, personally, but I'm hoping someone in the community can contribute some documentation based on their experience using it.
The text was updated successfully, but these errors were encountered:
Just figured out how to get this working using webpack to build for electron, which isn't a normal use case but I'm at least following up on the solution here for posterity. The key is to make webpack treat node_modules as external, so that the node process can use the native libs like serialport
I used webpack-node-externals:
constnodeExternals=require('webpack-node-externals');
...
module.exports={
...
externals: [nodeExternals()],// in order to ignore all modules in node_modules folder
...
};
* gh-107:
gh-107: Adds note about how to use osc.js with WebPack. Also updates the instructions on how to install osc.js (recommending npm over bower).
As described in a comment on #86, it looks like osc.js can be used with webpack. However, we don't currently provide a simple set of instructions in the README explaining how to do so.
I'm not a webpack user, personally, but I'm hoping someone in the community can contribute some documentation based on their experience using it.
The text was updated successfully, but these errors were encountered: