Comments (10)
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.
May icebox this if vite-pwa/vite-plugin-pwa#192 lands
from chromeos.dev.
@Snugug I'm also interested on trying to fix this list, we can fix it, PR are welcome on the plugin, some hints:
- you can use
globPatterns
andglobIgnores
- I need to review the plugin, but I think you don't need to use the virtual module
virtual:pwa-register
(using workbox-window) - uhmm, maybe we can add another strategy for it, since the service worker is compiled, we only need to omit the
injectManifest
part - I think this option should be done via vite configuration
- I have some branch on my fork with some tests to allow test on development.
from chromeos.dev.
@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.
@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.
for 1) you can also use transformManifest
from chromeos.dev.
FYI: working on a new strategy to compile custom sw
from chromeos.dev.
@Snugug just check this jeffposnick/yt-playlist-notifier#2, using custom sw on development
from chromeos.dev.
@Snugug pwa plugin released 0.11.13
with development support
from chromeos.dev.
@Snugug do you need to build only the service worker without injectManifest
?
from chromeos.dev.
Related Issues (20)
- Unicode 15.0 Emojis can't be searched on emoji picker HOT 2
- file extension .jpe HOT 1
- Android ARCVM container and AV1 hardware decoding HOT 1
- "Helpful resources at every stage" this section card UI is disroted in desktop HOT 1
- Badge Guidelines Singleton HOT 2
- Comparison Figure Schema HOT 1
- Badge Guidelines Page Query/Layout HOT 1
- ChromeOS Kernel HOT 1
- VT-2, Crostini and Dualsense HOT 1
- please add a package manager HOT 1
- CMS tool should have injectable fragments
- Add source field for statistics generator.
- Fix linting
- Add way to do local dev offline for site
- Add Tutorial content type
- CMS Live Preview
- Fix header search on small screens
- Add missing lang attribute to A2C legal attribution
- Consider adding speculation rules to speed up loading
- Add source to quotes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromeos.dev.