Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.49 KB

File metadata and controls

44 lines (28 loc) · 1.49 KB

WebTrit Click2Dial Widget

In any case, if you would like to build development or production version, run the command 'npm install'. To build dev version (hosted on localhost), run the command 'npm run dev'. After that please look at the console and follow the URL from that to verify the widget works properly. To build production version, execute the command 'npm run build' and check the content of the /dist directory. It contains the content files that must be hosted at the service provider's site. To embed the widget into end-client's website, just put two lines of code to the target websites page (see example at index.html):

<link rel="stylesheet" href="http://localhost:5173/dist/src/widget.css">
<script crossorigin type="module" src="http://localhost:5173/dist/widget.js" async></script>

Replace http://localhost:5173/dist/ - with the site URL/location on the service provider's side.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint