Methods
(static) plugin(name, func) → {function}
Generate PostCSS plugin.
This is a glue code generator to migrate existed plugins to support PostCSS 8.
Parameters:
Name | Type | Description |
---|---|---|
name | string | Plugin name. |
func | function | | Function with PostCSS plugin interface. |
- Source
Returns:
A PostCSS plugin.
- Type:
- function