Reduce the number of assets cached in the service worker

This commit is contained in:
Jordan Eldredge 2018-06-10 09:24:01 -07:00
parent bc5acc66e0
commit db1994ce9f

View file

@ -32,8 +32,12 @@ const config = merge(common, {
}),
new workboxPlugin.GenerateSW({
swDest: "service-worker.js",
// importWorkboxFrom: "local",
clientsClaim: true,
skipWaiting: true
skipWaiting: true,
// Safari (mobile and desktop) seems to have CORs issues when loading
// .mp3s from service workers.
exclude: [/\.mp3/, /\.wsz/]
})
]
});