diff --git a/plugins/minifyStyles.js b/plugins/minifyStyles.js index 36ea08944..c6cb13a60 100644 --- a/plugins/minifyStyles.js +++ b/plugins/minifyStyles.js @@ -1,153 +1,148 @@ 'use strict'; +/** + * @typedef {import('../lib/types').XastElement} XastElement + */ + const csso = require('csso'); -const { traverse } = require('../lib/xast.js'); +exports.type = 'visitor'; exports.name = 'minifyStyles'; - -exports.type = 'full'; - exports.active = true; - exports.description = 'minifies styles and removes unused styles based on usage data'; -exports.params = { - // ... CSSO options goes here - - // additional - usage: { - force: false, // force to use usage data even if it unsafe (document contains