-
-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should move adapters out of this repository. Then we will be able to use on electorn or web browser. #221
Comments
I think we should optionaly load the adapters, but keep it in the package |
But if adapter's dependency in package.json will cause some problem, like usb or serialport is not woking on electron, but it will try to build those dependencies. removed from package.json will crash app when dependency missing. |
with a optional load, there is no problem. the problem only occurs when you use the "require" method, that's why I proposed a dynamic load for usb adapter on the first place. |
@mofelee Does your fork function well on the browser after removing the adapters? If yes, can it print via USB |
My printer is network printer, electron can direct use the "net" module on browser. but we need require net module via |
+1 |
like this repo: https://github.com/mofelee/escpos-without-adapter
electron network adapter on renderer process:
The text was updated successfully, but these errors were encountered: