Giter Club home page Giter Club logo

Comments (10)

Snugug avatar Snugug commented on September 7, 2024 1

Thanks to the above comments, and a rethink of how we may implement our SW, I think our implementation can move from creating a new SW plugin to improving how we use Vite PWA today. There are still some areas (like local development) where there is work needed, but we can survive without it right now.

from chromeos.dev.

Snugug avatar Snugug commented on September 7, 2024

May icebox this if vite-pwa/vite-plugin-pwa#192 lands

from chromeos.dev.

userquin avatar userquin commented on September 7, 2024

@Snugug I'm also interested on trying to fix this list, we can fix it, PR are welcome on the plugin, some hints:

  1. you can use globPatterns and globIgnores
  2. I need to review the plugin, but I think you don't need to use the virtual module virtual:pwa-register (using workbox-window)
  3. uhmm, maybe we can add another strategy for it, since the service worker is compiled, we only need to omit the injectManifest part
  4. I think this option should be done via vite configuration
  5. I have some branch on my fork with some tests to allow test on development.

from chromeos.dev.

userquin avatar userquin commented on September 7, 2024

@Snugug the repo and branch for sw on development can be found here https://github.com/userquin/vite-plugin-pwa/tree/feat/add-development-support

Just check the last plugin on src/index.ts module and the logic on src/dev.ts module.

from chromeos.dev.

userquin avatar userquin commented on September 7, 2024

@Snugug you can use injectRegister: null for entry 2, see description here: https://github.com/antfu/vite-plugin-pwa/blob/main/src/types.ts#L47

from chromeos.dev.

userquin avatar userquin commented on September 7, 2024

for 1) you can also use transformManifest

from chromeos.dev.

userquin avatar userquin commented on September 7, 2024

FYI: working on a new strategy to compile custom sw

from chromeos.dev.

userquin avatar userquin commented on September 7, 2024

@Snugug just check this jeffposnick/yt-playlist-notifier#2, using custom sw on development

from chromeos.dev.

userquin avatar userquin commented on September 7, 2024

@Snugug pwa plugin released 0.11.13 with development support

from chromeos.dev.

userquin avatar userquin commented on September 7, 2024

@Snugug do you need to build only the service worker without injectManifest?

from chromeos.dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.