Skip to content

Instantly share code, notes, and snippets.

@rishi-raj-jain
Created January 23, 2022 11:35
Show Gist options
  • Save rishi-raj-jain/799336a50dd3630b4d7bac2d046b75a6 to your computer and use it in GitHub Desktop.
Save rishi-raj-jain/799336a50dd3630b4d7bac2d046b75a6 to your computer and use it in GitHub Desktop.
module.exports = {
globDirectory: "dist/",
globPatterns: [
"**/*.{css,eot,html,ico,jpg,js,json,png,svg,ttf,txt,webmanifest,woff,woff2,webm,xml}",
],
globFollow: true,
globStrict: true,
globIgnores: [
"**/*-es5.*.js",
"3rdpartylicenses.txt",
"assets/images/icons/icon-*.png",
],
dontCacheBustURLsMatching: new RegExp(".+.[a-f0-9]{20}..+"),
maximumFileSizeToCacheInBytes: 5000000,
swSrc: "dist/service-worker.js",
swDest: "dist/service-worker.js",
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment