plugin for PWA

This commit is contained in:
sakrecoer 2020-08-05 16:56:35 +02:00
parent ec5f87cbeb
commit a120fc8181
5 changed files with 61 additions and 72 deletions

View file

@ -141,4 +141,22 @@ border-alt: 'rgba(0, 0, 0, 0.75)'
accent1: '#38ff59'
accent1-alt: 'rgba(56, 255, 89, 0.75)'
accent2: '#8d3ed8'
accent2-alt: 'rgba(141, 62, 216, 0.75)'
accent2-alt: 'rgba(141, 62, 216, 0.75)'
plugins:
- jekyll-pwa-plugin
pwa:
enabled: false # Optional
sw_src_filepath: service-worker.js # Optional
sw_dest_filename: service-worker.js # Optional
dest_js_directory: assets/js # Required
precache_recent_posts_num: 5 # Optional
precache_glob_directory: / # Optional
precache_glob_patterns: # Optional
- "{js,css,fonts,albums}/**/*.{js,css,eot,svg,ttf,woff}"
- "*.{mp3,jpeg,mp4,webm}"
- index.html
precache_glob_ignores: # Optional
- sw-register.js
- "fonts/**/*"