$ export WIDGET_HOST="<< host url >>"
$ npm install
$ npm run build
- All files are in the
build
directory
Add one line of html before </body>
, that's it!
<script src="<< host url >>/build/embed.js" async></script>
$ export WIDGET_HOST="./build"
$ npm install
$ npm run build
php -S localhost:8000
or any command to create a dev web server- open
http://localhost:8000/test.html
on your browser