wc
This commit is contained in:
30
quasar/web_components/README.md
Normal file
30
quasar/web_components/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# trustcontact web components
|
||||
|
||||
Progetto Vue 3 (Vite) per creare Web Components custom element.
|
||||
|
||||
## Quick start
|
||||
|
||||
```bash
|
||||
cd quasar/web_components
|
||||
npm i
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Apri il playground su `http://localhost:5173`.
|
||||
|
||||
## Build libreria
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
Output in `dist/`:
|
||||
- `trustcontact-web-components.es.js`
|
||||
- `trustcontact-web-components.iife.js`
|
||||
|
||||
## Uso nel browser
|
||||
|
||||
```html
|
||||
<script type="module" src="/path/trustcontact-web-components.es.js"></script>
|
||||
<trustcontact-greeting name="Fabio"></trustcontact-greeting>
|
||||
```
|
||||
Reference in New Issue
Block a user