postcss-processor
Sugar way to create a postcss processor or get postcss plugins
Usage
var Processor = var plugins = Processor console// Plugins to be used: [ 'postcss-node-plugin', 'local-plugin' ] var processor =
processor = Processor(pluginNames, opts, resolveOpts)
Resolve the plugins according to pluginNames
, and return a processor using them.
plugins = Processor.plugin(pluginNames, opts, resolveOpts)
Resolve the plugins
opts
Options map for each plugin. Key is the name, and value is the option.
resolveOpts
Type: Object
Directly passed to resolve.sync(id, opts) to resolve the pluginNames
Type: Function
Used to resolve the pluginNames
, with signature resolve(id)