NickCis / razzle-plugin-workbox

A razzle plugin for adding workbox as create react app does
4 stars 2 forks source link

where do I keep the src? #6

Open mightyhorst opened 3 years ago

mightyhorst commented 3 years ago

How do I register the source file for the swDest where do I write it?

e.g. I want to follow this guide for a custom workbox strategy, but where would I keep this file: https://developers.google.com/web/tools/workbox/guides/route-requests

NickCis commented 3 years ago

This plugin is just a wrapper around the WorkboxWebpackPlugin.GenerateSW, so you'll be able to do anything that the mentioned plugin does. As far as I know swDest is a feature of the InjectManifest which it isn't implemented by this razzle plugin.