⚠️ In most cases options.from && options.to are set by the third-party which integrates this package (CLI, gulp, webpack). It's unlikely one needs to set/use options.from && options.to within a config file. Unless you're a third-party plugin author using this module and its Node API directly dont't set options.from && options.to yourself
to
from
Plugins
{} || null
The plugin will be loaded with defaults
.postcssrc.js
⚠️{} must be an empty{Object} literal
{Object}
The plugin will be loaded with given options
.postcssrc.js
false
The plugin will not be loaded
.postcssrc.js
Ordering
Plugin execution order is determined by declaration in the plugins section (top-down)
Context
When using a {Function} (postcss.config.js or .postcssrc.js), it's possible to pass context to postcss-load-config, which will be evaluated while loading your config. By default ctx.env (process.env.NODE_ENV) and ctx.cwd (process.cwd()) are available on the ctx{Object}
ℹ️ Most third-party integrations add additional properties to the ctx (e.g postcss-loader). Check the specific module's README for more information about what is available on the respective ctx