Skip to content

Commit

Permalink
feat(module): allow disabling with top-level options
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 14, 2020
1 parent f8dbf1d commit 65800f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = async function nuxtPWA (moduleOptions) {
// Normalize options
for (const name of modules) {
// Skip disabled modules
if (pwa[name] === false) {
if (pwa[name] === false || this.options[name] === false) {
continue
}
// Ensure options are an object
Expand Down

0 comments on commit 65800f9

Please sign in to comment.