diff --git a/README.md b/README.md index d4a532d4..dce11dd1 100644 --- a/README.md +++ b/README.md @@ -39,11 +39,15 @@ npm run serve You should now have the application running and accessible at (note: will run on a different port if 8080 is occupied, most common alternative port is 8081). ## Building as web component + To build the project as a web component, run the command `npm run build-component`. This will create a file in the `dist` folder named `license-chooser.min.js`. It can be used to load the web-component in any JS project. There is also a sample `demo.html` created. -To be able to use the file it should either be rendered statically from the integrater's web-app or be published on a CDN. Following code can be used to integrate this in other apps: + +To be able to use the file it should either be rendered statically from the integrater's web-app or be published on a CDN. Following code can be used to integrate this in other apps. + +Note: the Chooser component depends on Vue 2.x, as can be seen in the following example. ``` - +