From 94fc2e97b4a9041ea0161a2e95a1f4db8be5ed19 Mon Sep 17 00:00:00 2001 From: Brylie Christopher Oxley Date: Wed, 23 Feb 2022 09:26:07 +0200 Subject: [PATCH] Use Vue 2.x --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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. ``` - +