Skip to content

Commit c5570a1

Browse files
authored
Merge branch 'main' into fix/377-add-wizard-plugin-for-substation-designer
2 parents 03ca815 + cfe40e4 commit c5570a1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
1+
const packageJson = require('./package.json');
2+
13
module.exports = {
2-
cacheId: 'compas',
4+
cacheId: `compas-${packageJson.version}`,
35
globDirectory: 'build/',
46
globPatterns: [
57
'_snowpack/**/*.{md,js,png,xml,pdf,css,html,info,json,ico,svg,wasm}',
68
'public/**/*.{md,js,png,xml,pdf,css,html,info,json,ico,svg,wasm}',
79
'src/**/*.{md,js,png,xml,pdf,css,html,info,json,ico,svg,wasm}',
10+
'plugins/**/*.{md,js,png,xml,pdf,css,html,info,json,ico,svg,wasm}',
11+
'external-plugins/**/*.{md,js,png,xml,pdf,css,html,info,json,ico,svg,wasm}',
812
'*.{md,json,ico,xml}',
13+
'package.json.proxy.js',
914
],
1015
globIgnores: [
1116
'public/nsdoc/README.md'
1217
],
1318
swDest: 'build/sw.js',
1419
runtimeCaching: [
20+
{
21+
urlPattern: /package\.json\.proxy\.js$/,
22+
handler: 'NetworkFirst',
23+
},
1524
{
1625
urlPattern: /\/(_snowpack|public|src)\/.*/,
1726
handler: 'NetworkFirst',
@@ -20,10 +29,11 @@ module.exports = {
2029
fetchOptions: {
2130
credentials: 'include',
2231
},
23-
}
32+
},
2433
},
2534
],
2635
skipWaiting: true,
36+
clientsClaim: true,
2737
inlineWorkboxRuntime: true,
2838
cleanupOutdatedCaches: true,
2939
};

0 commit comments

Comments
 (0)