I noticed there is a square.cjs.production.min.js file in the node_modules folder when I install square in npm.
Can i add that to my project which gets minified, or is it best to minify the node_modules/square folder using my gulp file?
I noticed there is a square.cjs.production.min.js file in the node_modules folder when I install square in npm.
Can i add that to my project which gets minified, or is it best to minify the node_modules/square folder using my gulp file?
Hi @waddelleng welcome to the forums!
It sounds like you’re attempting to use the node SDK in a front-end Javascript fashion, but I might be misunderstanding. If this is accurate, then we do not allow our APIs to be called from the front-end, it must be called from the back-end. Please let me know if I misunderstood, or if you have additional questions.