ionic-team / ionic-team/ionic-docs

feat: PWA deployment guide for app built with Vanilla JS Browser-Native Web Component API

Ouverte
#3,546 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
triage
Langage dominant
MDX
Étoiles
621
Forks
3.2k
Merge moyen
1 j 2 h
PR mergées (30 j)
86

Description

### Describe Problem

These is no guide on how to deploy as a PWA an app built with neither Angular, nor React, nor Vue but just Vanilla JS and the [Web Component API](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) provided directly by web browsers.

However, looking at the guides for React and Vue it seems that the option using the Vite plugin vite-plugin-pwa are eerily familiar.
Does this plugin work as well for no framework Vanilla JS app?

Since there is no --type=vanilla options available neither for the Ionic CLI init and start commands, should I infer that to reuse Ionic components and Ionic CSS utilities in a Vanilla JS app, one should scaffold the app directly with Vite rather than with the Ionic CLI?

### Describe Preferred Solution

_No response_

### Describe Alternatives

_No response_

### Additional Information

_No response_

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.