Skip to content

Commit

Permalink
fix: expose modified pwa context to the config
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 11, 2019
1 parent 616915f commit c325e44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/module.js
Expand Up @@ -2,7 +2,8 @@ module.exports = async function nuxtPWA (moduleOptions) {
const modules = ['icon', 'manifest', 'meta', 'workbox']

// Shared options context
const pwa = { ...this.options.pwa, ...moduleOptions }
this.options.pwa = { ...(this.options.pwa || {}), ...(moduleOptions || {}) }
const { pwa } = this.options.pwa

// Normalize options
for (const name of modules) {
Expand Down

0 comments on commit c325e44

Please sign in to comment.