shadowwalker / next-pwa

Zero config PWA plugin for Next.js, with workbox 🧰
MIT License
3.89k stars 325 forks source link

Custom workbox file naming #330

Closed atuljain2995 closed 2 years ago

atuljain2995 commented 2 years ago

I want to rename the workbox file with a prefix to identify the workbox for different products. Is there any way I can achieve that ?

atuljain2995 commented 2 years ago

I want the workbox file name to be like "xyz-workbox-12345.js"

shadowwalker commented 2 years ago

Workbox file content will the same, why do you want to create duplicate files? You can custom service worker file name by config sw: 'service-worker.js'

atuljaingocomet commented 2 years ago

Yes, I made changes from server side, and it worked. I'm multi-repo architecture, so it was causing a problem.

atuljain2995 commented 2 years ago

Resolved