quasarframework / quasar-cli

[DEPRECATED, <= 0.17) Quasar Framework - CLI
https://quasar.dev
MIT License
202 stars 50 forks source link

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

Open SMen1 opened 5 years ago

SMen1 commented 5 years ago

swDest does not work for me as an option in quasar-cli@0.17.22 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?