Skip to content

[Vite] PWA support #12052

Closed
Closed

Description

@gilberto-torrezan

PWA support is defined by 3 aspects:

  • Web manifest
  • Service worker
  • Offline configuration

How it works today

ServiceWorkerPlugin using InjectManifest for PWA (using workbox)

How could it work

Service worker should be generated with the same configuration using the same workbox version

Note: offline support is something that might need to work in "webpack mode" for simplicity, if it doesn't work out of the box.

Activity

  1. gilberto-torrezan commented on Nov 3, 2021

    @gilberto-torrezan
    ContributorAuthor

    The web manifest doesn't concern webpack at all, but the service worker and the offline configuration does.

    We are already using workbox to process the output from webpack, so in theory it would be just a matter of processing the output of vite instead for this to work. Needs investigation.

  2. self-assigned this
    on Nov 10, 2021
  3. gilberto-torrezan commented on Nov 17, 2021

    @gilberto-torrezan
    ContributorAuthor

    The offline support will be tracked as a separate ticket: #12383

  4. added a commit that references this issue on Nov 24, 2021
  5. joheriks commented on Nov 25, 2021

    @joheriks
    Contributor

    PWA in dev mode is tracked in #12393.

  6. added a commit that references this issue on Dec 3, 2021
  7. added a commit that references this issue on Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementviteTickets related to vite support

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions