Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config for supplying own service worker file #64

Open
lukasIO opened this issue Aug 11, 2019 · 0 comments
Open

Config for supplying own service worker file #64

lukasIO opened this issue Aug 11, 2019 · 0 comments

Comments

@lukasIO
Copy link

lukasIO commented Aug 11, 2019

I tried to understand the custom config options for pwa.config.js, but could not find a way to get the workbox options (particularly, which swSrc applied in my build.

the config file looks like this right now:

exports.workbox = {
    advanced: false, // alias
    injectManifest: false, // alias
    swSrc: './service_worker.js', // template; mode: InjectManifest
    navigateFallbackWhitelist: [/^(?!\/__).*/], // mode: GenerateSW
    navigateFallback: 'index.html', // mode: GenerateSW
    swDest: 'sw.js',
    exclude: [
      /\.git/,
      /\.map$/,
      /\.DS_Store/,
      /^manifest.*\.js(?:on)?$/,
      /\.gz(ip)?$/,
      /\.br$/
    ]
  }

thanks for any pointers!

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

No branches or pull requests

1 participant