Closed Hiswe closed 5 years ago
Hi,
me again,
I have this error while using the plugin in inject mode:
inject
UnhandledPromiseRejectionWarning: Error: No files match the pattern: /Users/me/Documents/project/dist/thaime-service-worker.js
This seems to come from the replace function in the inject Promise chain.
Shouldn't it be:
workbox .injectManifest(injectOptions) // return the promise .then(() => replace({ files: config.swDest || swDest, from: /__PUBLIC/g, to: publicURL, }) ) .then(() => printErr('sw-cache: Service worker injection completed.')) .catch(error => printErr('sw-cache: Service worker injection failed: ' + error) )
If this is really an error, I can come with a PR :)
I think you're right, please do 👍
done in #16
@mischnic Thanks for publishing the fix! It's all good now :)
Hi,
me again,
I have this error while using the plugin in
inject
mode:This seems to come from the replace function in the inject Promise chain.
Shouldn't it be:
If this is really an error, I can come with a PR :)