Skip to content
Permalink
Browse files
fix: expose modified pwa context to the config
  • Loading branch information
pi0 committed Sep 11, 2019
1 parent 616915f commit c325e4434b940789309f80aa91b1e436363aa906
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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) {

0 comments on commit c325e44

Please sign in to comment.