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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, vite

Research direction

Start by comparing the existing React and Vue PWA guides, then check how vite-plugin-pwa applies to a Vanilla JS Web Component app. Review the Ionic CLI init and start commands and the absence of a vanilla option. Done means documenting the supported deployment path and how to scaffold an app that reuses Ionic components and CSS utilities.

Written by the indexing model from the issue text.

Description

triage
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 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

Dominant language
MDX
Stars
621
Forks
3.2k
Avg merge
1d 2h
Merged PRs (30d)
86

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/ionic-docs

All issues in ionic-team/ionic-docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.