Methods

(static) plugin(name, func) → {function}

Generate PostCSS plugin.

This is a glue code generator to migrate existed plugins to support PostCSS 8.

Parameters:
NameTypeDescription
namestring

Plugin name.

funcfunction | Object

Function with PostCSS plugin interface.

Returns:

A PostCSS plugin.

Type: 
function