Skip to content

Commit 44defba

Browse files
authored
Added exclude precaching files. UI fix on B2CHomePage (#742)
* Added exclude precaching files. UI fix on B2CHomePage * Added .map files extensions * Return handler in runtimeCaching
1 parent 9213c12 commit 44defba

File tree

6 files changed

+1032
-148
lines changed

6 files changed

+1032
-148
lines changed

config/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ module.exports = function (webpackEnv) {
645645
formatter: isEnvProduction ? typescriptFormatter : undefined,
646646
}),
647647
new WorkboxPlugin.GenerateSW({
648+
exclude: [/\.(?:png|jpg|svg|json|ico|jpeg|js|css|html|map)$/],
649+
maximumFileSizeToCacheInBytes: 6000000,
648650
runtimeCaching: [
649651
{
650652
urlPattern: /\.(?:jpg|png|json|ico|jpeg)$/,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"webpack-dev-server": "3.7.1",
101101
"webpack-merge": "^4.2.2",
102102
"webpack-pwa-manifest": "^4.0.0",
103-
"workbox-webpack-plugin": "^4.3.1"
103+
"workbox-webpack-plugin": "^5.1.3"
104104
},
105105
"scripts": {
106106
"start": "BROWSER=none node scripts/start.js",

src/components/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/src/B2cHomePage/b2c.home.page.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@
316316
width: 70%;
317317
max-width: 400px;
318318
position: absolute;
319-
bottom: 0;
320319
right: 0;
321320
}
322321
}

src/components/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11624,7 +11624,7 @@ react-scripts@^3.4.0:
1162411624
webpack "4.42.0"
1162511625
webpack-dev-server "3.10.3"
1162611626
webpack-manifest-plugin "2.2.0"
11627-
workbox-webpack-plugin "4.3.1"
11627+
workbox-webpack-plugin "5.1.3"
1162811628
optionalDependencies:
1162911629
fsevents "2.1.2"
1163011630

@@ -14127,8 +14127,8 @@ workbox-sw@^4.3.1:
1412714127
resolved "https://registry.yarnpkg.com/workbox-sw/-/workbox-sw-4.3.1.tgz#df69e395c479ef4d14499372bcd84c0f5e246164"
1412814128
integrity sha512-0jXdusCL2uC5gM3yYFT6QMBzKfBr2XTk0g5TPAV4y8IZDyVNDyj1a8uSXy3/XrvkVTmQvLN4O5k3JawGReXr9w==
1412914129

14130-
workbox-webpack-plugin@4.3.1:
14131-
version "4.3.1"
14130+
workbox-webpack-plugin@5.1.3:
14131+
version "5.1.3"
1413214132
resolved "https://registry.yarnpkg.com/workbox-webpack-plugin/-/workbox-webpack-plugin-4.3.1.tgz#47ff5ea1cc074b6c40fb5a86108863a24120d4bd"
1413314133
integrity sha512-gJ9jd8Mb8wHLbRz9ZvGN57IAmknOipD3W4XNE/Lk/4lqs5Htw4WOQgakQy/o/4CoXQlMCYldaqUg+EJ35l9MEQ==
1413414134
dependencies:

0 commit comments

Comments
 (0)