mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-24 12:22:27 +03:00
21 lines
493 B
JavaScript
21 lines
493 B
JavaScript
module.exports = {
|
|
globDirectory: "dist/",
|
|
globPatterns: ["**/*.{html,js}"],
|
|
swDest: "dist/service-worker.js",
|
|
runtimeCaching: [
|
|
{
|
|
// Match any request that ends with .png, .jpg, .jpeg or .svg.
|
|
// urlPattern: /^https:\/\/fonts\.googleapis\.com/,
|
|
urlPattern: /^https:\/\/fonts\.gstatic\.com/,
|
|
|
|
// Apply a cache-first strategy.
|
|
handler: "CacheFirst",
|
|
|
|
options: {
|
|
// Use a custom cache name.
|
|
cacheName: "fonts"
|
|
}
|
|
}
|
|
]
|
|
};
|