Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds service worker to the skeleton #6

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

luisdlopez
Copy link
Contributor

@luisdlopez luisdlopez commented Jul 22, 2024

GitHub Issue or Internal Use Azure Devops Work Item ID:
https://dev.azure.com/nventive/Practice%20committees/_workitems/edit/306648/

Proposed Changes

  • Bug fix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes, no api changes)
  • Build or CI related changes
  • Documentation content changes
  • Other, please describe:

What is the current behavior?

The skeleton does not include the setup for a service worker or any other features related to PWAs

What is the new behavior?

Using the vite PWA plugin, the project is now setup to support service workers

https://vite-pwa-org.netlify.app/guide/

There are 2 service worker strategies: generateSW vs injectManifest.

This setup uses the default generateSW strategy.

Also includes setup for @vite-pwa/assets-generator, to generate icons for the PWA app

Checklist

Please check that your PR fulfills the following requirements:

  • Documentation has been added/updated.

Other information

Copy link
Contributor

@ChuckLeon ChuckLeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

config: true,
},

manifest: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Que penses tu de sortir le manifest dans son propre file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants