Skip to content

Commit

Permalink
Supressing workbox console logger on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
montoulieu committed Aug 2, 2021
1 parent b4290ce commit 18925b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
.next
/public/service-worker.js*
/public/workbox*
/public/worker*

# misc
.DS_Store
Expand Down
5 changes: 5 additions & 0 deletions worker/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// To disable all workbox logging during development, you can set self.__WB_DISABLE_DEV_LOGS to true
// https://developers.google.com/web/tools/workbox/guides/configure-workbox#disable_logging

// eslint-disable-next-line no-underscore-dangle,no-restricted-globals
self.__WB_DISABLE_DEV_LOGS = true;

0 comments on commit 18925b8

Please sign in to comment.