quasar-cli icon indicating copy to clipboard operation
quasar-cli copied to clipboard

workboxOptions swDest defaults to service-worker.js even if custom specified in options

Open SMen1 opened this issue 6 years ago • 0 comments

swDest does not work for me as an option in [email protected] and Quasar v0.17.8.

pwa: { workboxPluginMode: 'InjectManifest', workboxOptions: { swDest: 'service-worker-newfilename.js' },

My expectation is that all the options listed in the workbox-webpack-plugin guide would be configurable in the workboxOptions in quasar.conf.js. I can see from other posts here that exclude works in workboxOptions, and I am presuming swDest would be used for subfolders which was another issue.

However, whatever option I specify for swDest defaults to service-worker.js on build - apologies if I have made a simple error.

Software version

OS: Windows 10 Node: v10.13.0 NPM: 6.4.1 Yarn: 1.12.3 Any other software related to your bug:

What did you get as the error?

What were you expecting?

What steps did you take, to get the error?

SMen1 avatar Dec 18 '18 14:12 SMen1