mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 04:27:59 +00:00
feat: Add PWA support with service worker and caching
- Implemented service worker registration in main.js - Added icons for PWA in manifest.json - Created a basic service worker (sw.js) for caching static assets - Generated a list of files to cache using a Node.js script (generate-pwa-cache-list.js) - Added icon images (icon-192.png and icon-512.png) for PWA - Defined PWA manifest with app details and icon references
This commit is contained in:
4
.github/workflows/gh-pages.yml
vendored
4
.github/workflows/gh-pages.yml
vendored
@@ -37,6 +37,9 @@ jobs:
|
||||
- name: Generate SVG variants
|
||||
run: node scripts/generate-svg-variants.js
|
||||
|
||||
- name: Generate PWA cache list
|
||||
run: node scripts/generate-pwa-cache-list.js
|
||||
|
||||
- name: Prepare Pages artifact
|
||||
run: |
|
||||
mkdir -p ./gh-pages-artifact/build
|
||||
@@ -50,6 +53,7 @@ jobs:
|
||||
cp -r public/data ./gh-pages-artifact/
|
||||
cp -r public/logos ./gh-pages-artifact/
|
||||
cp -r public/logos_gen ./gh-pages-artifact/
|
||||
cp public/pwa-files-to-cache.json ./gh-pages-artifact/
|
||||
if [ -f public/CNAME ]; then
|
||||
cp public/CNAME ./gh-pages-artifact/CNAME
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user