NickCis / razzle-plugin-workbox

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

workbox injectManifest #2

Open behnam-maqsudi opened 4 years ago

behnam-maqsudi commented 4 years ago

when i want use custom service worker in razzle-plugin-workbox i have not option for that

how we can use inject manifest method or how can inject custom service worker i try importScript in generatorSw but when i want to build project custom service workers not append to sw.js

and i not sure importScript has listener

NickCis commented 4 years ago

The feature that you are asking for, importScript, is from the InjectManifest webpack plugin. This razzle plugin doesn't implement the InjectManifest plugin, it is just a wrapper of the GenerateSW one.

You can check the source code and if you like send a PR with the feature you are requiring.