scotthovestadt / gigya

Gigya JavaScript REST SDK
MIT License
38 stars 61 forks source link

CaCert using relative path breaks on projects using webpack #44

Open balassit opened 4 years ago

balassit commented 4 years ago

Issue: When bundling a project that uses gigya, the node_modules directory is not included in the project, so there is no reference to the cacert. This causes the failure below:

Error: ENOENT: no such file or directory, open \'/assets/cacert.pem\'' } 

Solution: The CaCert needs to be bundled with the dist, and not using a relative path to import it.