Skip to content

Commit c325e44

Browse files
committedSep 11, 2019
fix: expose modified pwa context to the config
1 parent 616915f commit c325e44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/module.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ module.exports = async function nuxtPWA (moduleOptions) {
22
const modules = ['icon', 'manifest', 'meta', 'workbox']
33

44
// Shared options context
5-
const pwa = { ...this.options.pwa, ...moduleOptions }
5+
this.options.pwa = { ...(this.options.pwa || {}), ...(moduleOptions || {}) }
6+
const { pwa } = this.options.pwa
67

78
// Normalize options
89
for (const name of modules) {

0 commit comments

Comments
 (0)
Please sign in to comment.