Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

disabling workbox logging #4

Open
mvolkmann opened this issue Apr 11, 2020 · 1 comment
Open

disabling workbox logging #4

mvolkmann opened this issue Apr 11, 2020 · 1 comment

Comments

@mvolkmann
Copy link

According to this page, I think I should be able to disable workbox logging by setting the "mode" option to "production":

https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-build#.generateSW

But when I include this in the function exported by .eleventy.js it says "mode" is not a supported parameter":

  eleventyConfig.addPlugin(pwaPlugin, {
    swDest: './_site/service-worker.js',
    globDirectory: './_site',
    mode: 'production'
  });

Do you know how I can disable the workbox logging that appears in the DevTools console?

@pvds
Copy link

pvds commented Sep 19, 2020

@mvolkmann the page you are referring to is for version 5.1.2 of the workbox-build module.

eleventy-plugin-pwa uses version 4.3.1, which has less options, the options for version 4.3.1 can be found here.

In order to use all the options listed online you would have to fork this repo and upgrade the workbox-build dependency to the latest version 5.1.4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants