pianello-web-app/build-sw.js

17 lines
294 B
JavaScript
Raw Normal View History

2023-05-31 16:01:47 +02:00
#!/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',
]
});