ionic-team / ionic-team/ionic-docs

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

Open
#3,546 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
MDX
Stars
621
Forks
3.2k
Avg merge
1d 2h
Merged PRs (30d)
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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.