Skip to content

Commit e89f91a

Browse files
committed
Add basic PWA config - will setup later
1 parent 1cbb781 commit e89f91a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

_config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,16 @@ highlighter: none
2121
keep_files: [
2222
'expect-ct-report'
2323
]
24+
pwa:
25+
enabled: false # Optional
26+
sw_src_filepath: service-worker.js # Optional
27+
sw_dest_filename: service-worker.js # Optional
28+
dest_js_directory: assets/js # Required
29+
precache_recent_posts_num: 5 # Optional
30+
precache_glob_directory: / # Optional
31+
precache_glob_patterns: # Optional
32+
- "{js,css,fonts}/**/*.{js,css,eot,svg,ttf,woff}"
33+
- index.html
34+
precache_glob_ignores: # Optional
35+
- sw-register.js
36+
- "fonts/**/*"

0 commit comments

Comments
 (0)