-
Notifications
You must be signed in to change notification settings - Fork 782
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
Can I use without cordova? #83
Comments
Yes, you should be able to simply include the minified library on the page, and the proper methods will be added to the window object. It's distributed as in UMD format, so it should also work as expected with your CommonJS project. Be sure to check out the Browser readme section platform for specific notes. |
On another note – if you're trying to require it, your CommonJS loader may be looking inside |
Allows for proper resolution by CommonJS #83
Ok – I just added the property in this commit: 955e375 It should be included in the next release of ...
"main": "dist/cordova-plugin-qrscanner-lib.min.js",
... Please let me know if that solves the issue! |
You beautiful, beautiful unicorn man. Seems to have worked like a charm This is going to work wonders in my app. This is by far the most robust and well maintained qr scanning library I have found. I appreciate the help and speedy response |
Glad to hear it, thanks for opening the issue! |
I am developing a web app and I hope to implement a qr scanner. I came across this library and it looks very robust. I installed it via npm and tried to require('cordova-plugin-qrscanner') as I have done with my other npm modules. I am kind of confused as to how this library can be integrated into my App or if its even possible. I am not using any front end frameworks. Am I completely missing something here? Any clarification would be great. Thanks!
The text was updated successfully, but these errors were encountered: