pianello-web-app/build-sw.js
Federico Bologni 909d978f4f
Some checks failed
ci/woodpecker/pr/build Pipeline failed
Add PWA support
2023-05-31 16:01:47 +02:00

16 lines
294 B
JavaScript
Executable file

#!/usr/bin/env node
import {injectManifest} from 'workbox-build';
injectManifest({
swSrc: './src/js/service-worker.js',
swDest: './dist/service-worker.js',
globDirectory: './dist',
globPatterns: [
'**/*.js',
'**/*.css',
'**/*.svg',
'**/*.ttf',
'**/*.png',
]
});