Development Version¶
We provide a development version of the library, which allows you to open developer tools in the browser, and also has less injection protection. This version can't be used in production and is for development purposes only.
-
Install the development package in your application (replace
./idlive-face-capture-web-development.tgzwith the path to the provided archive file)npm i idlive-face-capture-web-development file:./idlive-face-capture-web-development.tgz -
Import the development package instead of the production version. Below is an example implementation in Webpack
if (process.env.NODE_ENV === 'development') { import('idlive-face-capture-web-development'); } else { import('idlive-face-capture-web'); }