Skip to content

Commit 65800f9

Browse files
committed
feat(module): allow disabling with top-level options
1 parent f8dbf1d commit 65800f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = async function nuxtPWA (moduleOptions) {
88
// Normalize options
99
for (const name of modules) {
1010
// Skip disabled modules
11-
if (pwa[name] === false) {
11+
if (pwa[name] === false || this.options[name] === false) {
1212
continue
1313
}
1414
// Ensure options are an object

0 commit comments

Comments
 (0)