All widgets are inside /widgets
package.
Webpack config and dedicated tsconfig.json is in /widgets/config/
- To build your widgets run:
npm run build:widgets
- Bundled widgets will goes to
public/static/widgets
- You can get access to them using
http://localhost:3000/static/widgets/simple-map.js
npm run dev -- -H 192.168.0.104
ngrok http -auth="user:pass" -region eu 3000
- Make sure that firewall (ESET antivirus) is turned off
- Set IP_ADDRESS=<ip_address> of your device in .env
- Connect phone with your computer via usb
- Go to chrome://inspect/#devices
- Wait until your phone will be found
- Allow USB debugging on your phone via notification
- Type website address on computer or mobile phone