Skip to content

Commit 18925b8

Browse files
committed
Supressing workbox console logger on dev
1 parent b4290ce commit 18925b8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
.next
1414
/public/service-worker.js*
1515
/public/workbox*
16+
/public/worker*
1617

1718
# misc
1819
.DS_Store

worker/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// To disable all workbox logging during development, you can set self.__WB_DISABLE_DEV_LOGS to true
2+
// https://developers.google.com/web/tools/workbox/guides/configure-workbox#disable_logging
3+
4+
// eslint-disable-next-line no-underscore-dangle,no-restricted-globals
5+
self.__WB_DISABLE_DEV_LOGS = true;

0 commit comments

Comments
 (0)