Created
December 14, 2017 08:42
-
-
Save sumit-gupta91/20ae00573fdf0b44e031d784fd80e94f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new SWPrecacheWebpackPlugin({ | |
cacheId: 'rodimus', | |
filename: 'serviceWorker.js', | |
staticFileGlobsIgnorePatterns: [/\.map$/, /\.json$/], | |
importScripts: ['offline/offline.00000002.js'], | |
dontCacheBustUrlsMatching: /./, | |
minify: true, | |
runtimeCaching: [{ | |
urlPattern: new RegExp('/images.treebohotels.com/'), | |
handler: 'cacheFirst', | |
}], | |
}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment