Exclude manifest.json precaching

This commit is contained in:
Pushkar Anand 2021-06-15 10:32:46 +05:30 committed by GitHub
parent bcba1dd35a
commit 641aa62da0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ module.exports = withWorkbox(withBundleAnalyzer({
},
workbox: {
swSrc: 'src/serviceWorker.js',
exclude: ['/manifest.json'],
exclude: [/manifest.json$/i],
},
webpack: (config, { isServer, webpack }) => {
if (!isServer) {