field-interactive / cito-bundle

MIT License
1 stars 0 forks source link

Default Packages #8

Closed timworxDE closed 5 years ago

timworxDE commented 5 years ago
domideimel commented 5 years ago
return workbox.generateSW({
        globDirectory: config.publicPath,
        globPatterns: ['**\/*.{gz,js,css,jpg,JPG,png,ico,otf,eot,ttf,woff,woff2,svg}'],
        runtimeCaching: [
            {
                urlPattern: new RegExp('\/de\/(.*)'),
                handler: 'staleWhileRevalidate'
            },
            {
                urlPattern: new RegExp('\/en\/(.*)'),
                handler: 'staleWhileRevalidate'
            }
        ],
        swDest: config.publicPath + '/sw.js'
    });