Revert "* fix: 🐛 Enabling workbox to cache webfonts and fonts-stylesheets, add local fonts for UMD build (#906)" (#961)

This reverts commit 69b96478cb.
This commit is contained in:
Danny Brown authored and GitHub committed 2019-09-27 06:54:47 -04:00
1 parent 8bb730318a
commit ae26904885
11 files changed
+38 -134

No files matched your search

-26
View File
@@ -102,32 +102,6 @@ module.exports = (env, argv) => {
swDest: 'sw.js',
clientsClaim: true,
skipWaiting: true,
exclude: [
new RegExp('^https://fonts.googleapis.com/'),
new RegExp('^https://fonts.gstatic.com/'),
],
runtimeCaching: [
{
urlPattern: new RegExp('^https://fonts.googleapis.com/'),
handler: 'StaleWhileRevalidate',
options: {
cacheName: 'google-fonts-stylesheets',
},
},
{
urlPattern: new RegExp('^https://fonts.gstatic.com/'),
handler: 'CacheFirst',
options: {
cacheName: 'google-fonts-webfonts',
// Only cache 30 images / one year.
expiration: {
maxAgeSeconds: 60 * 60 * 24 * 365,
maxEntries: 30,
},
},
},
],
}),
],
// https://webpack.js.org/configuration/dev-server/