diff --git a/lib/module.js b/lib/module.js index 7697a4e..b67198e 100644 --- a/lib/module.js +++ b/lib/module.js @@ -55,9 +55,9 @@ export default function nuxtPruneHtml( for( const s of selectors ) { - const selector = ! selectorToKeep - ? s - : `${ s }:not(${ selectorToKeep })` + const selector = selectorToKeep + ? `${ s }:not(${ selectorToKeep })` + : s ; $(