We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 616915f commit c325e44Copy full SHA for c325e44
lib/module.js
@@ -2,7 +2,8 @@ module.exports = async function nuxtPWA (moduleOptions) {
2
const modules = ['icon', 'manifest', 'meta', 'workbox']
3
4
// Shared options context
5
- const pwa = { ...this.options.pwa, ...moduleOptions }
+ this.options.pwa = { ...(this.options.pwa || {}), ...(moduleOptions || {}) }
6
+ const { pwa } = this.options.pwa
7
8
// Normalize options
9
for (const name of modules) {
0 commit comments