PWA optimizations
All checks were successful
continuous-integration/drone/push Build is passing

this supports asset caching + proper handling of the /env.js file (might have lead to config errors in previous versions)
This commit is contained in:
2021-01-07 18:16:36 +01:00
parent 44029c812e
commit bc66ebbf0a
7 changed files with 29 additions and 26 deletions

View File

@@ -1,7 +1,6 @@
module.exports = {
"globDirectory": "public/",
"globPatterns": [
"**/*.{js,ico,png,svg,html,txt}"
],
"swDest": "public/sw.js"
};
globDirectory: 'public',
globPatterns: [ '**/*.{js,ico,png,svg,html,webmanifest,txt}' ],
globIgnores: [ 'env.js', 'env.sample.js' ],
swDest: 'public/sw.js'
};