diff --git a/plugins/minifyStyles.js b/plugins/minifyStyles.js index a10b8d207..f8b58a43b 100644 --- a/plugins/minifyStyles.js +++ b/plugins/minifyStyles.js @@ -2,27 +2,47 @@ /** * @typedef {import('../lib/types').XastElement} XastElement + * @typedef {import('../lib/types').XastParent} XastParent */ const csso = require('csso'); +const { detachNodeFromParent } = require('../lib/xast'); exports.name = 'minifyStyles'; -exports.description = - 'minifies styles and removes unused styles based on usage data'; +exports.description = 'minifies styles and removes unused styles'; /** - * Minifies styles ( + + + +@@@ + + + +