build: exclude index.html cache

This commit is contained in:
Tristan 2019-09-09 23:24:51 +08:00
parent ce51554524
commit 4747ad43bf

View File

@ -58,7 +58,7 @@ module.exports = merge(commonConfig, {
}), }),
new GenerateSW({ new GenerateSW({
clientsClaim: true, clientsClaim: true,
exclude: [/\.map$/, /asset-manifest\.json$/], exclude: [/\.map$/, /asset-manifest\.json$/, /index\.html$/],
importWorkboxFrom: 'local', importWorkboxFrom: 'local',
navigateFallback: 'index.html', navigateFallback: 'index.html',
navigateFallbackBlacklist: [ navigateFallbackBlacklist: [