fix(building-utils): dont precache legacy files

This commit is contained in:
thepassle
2020-02-23 18:28:52 +01:00
committed by Lars den Bakker
parent b524ada7f3
commit 20ece8df0d

View File

@@ -5,6 +5,7 @@ const path = require('path');
module.exports = function getWorkboxConfig(outputDir) {
const workboxConfigPath = path.join(process.cwd(), 'workbox-config.js');
const defaultWorboxConfig = {
globIgnores: ['/legacy/*.js'],
navigateFallback: '/index.html',
// where to output the generated sw
swDest: path.join(process.cwd(), outputDir, 'sw.js'),