Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.babelrc Rename doc/ to examples/ Jan 12, 2016
.gitignore Rename doc/ to examples/ Jan 12, 2016
index.js Prepare bundling examples for beta 2 Apr 22, 2016
package.json Release v10.7.0 Nov 23, 2016


Browserify example

This example shows how to bundle the auth0-lock npm package with browserify. It uses Babel to support the new ES2015 syntax, but it is not a requirement.

First, ensure you have node installed on your system. Then, run npm install to install the project's dependencies and npm run build to build the bundle. Finally, open index.html in your favorite browser.


Having multiple copies of React in your bundle can cause problems. Lock was built using React, and if your project, or any other dependency, also depends on React, you might en up with two different versions in your bundle. In such scenarios, you should see a warning when doing npm install. Also, you can check with npm ls react at any time.