postcss-load-config

  • Version 3.1.0
  • Published
  • 22 kB
  • 3 dependencies
  • MIT license

Install

npm i postcss-load-config
yarn add postcss-load-config
pnpm add postcss-load-config

Overview

Autoload Config for PostCSS

Index

Functions

function postcssrc

postcssrc: typeof postcssrc;

    function sync

    sync: (ctx?: ConfigContext, path?: string, options?: any) => Result;

      Interfaces

      interface Config

      interface Config {}

        property from

        from?: string;

          property map

          map?: string | false;

            property parser

            parser?: string | ProcessOptions['parser'] | false;

              property plugins

              plugins?: Array<ConfigPlugin | false> | Record<string, object | false>;

                property stringifier

                stringifier?: string | ProcessOptions['stringifier'] | false;

                  property syntax

                  syntax?: string | ProcessOptions['syntax'] | false;

                    property to

                    to?: string;

                      interface Context

                      interface Context {}

                        property cwd

                        cwd?: string;

                          property env

                          env?: string;

                            interface ProcessOptionsPreload

                            interface ProcessOptionsPreload {}

                              property parser

                              parser?: string | ProcessOptions['parser'];

                                property stringifier

                                stringifier?: string | ProcessOptions['stringifier'];

                                  property syntax

                                  syntax?: string | ProcessOptions['syntax'];

                                    interface Result

                                    interface Result {}

                                      property file

                                      file: string;

                                        property options

                                        options: ProcessOptions;

                                          property plugins

                                          plugins: ResultPlugin[];

                                            Type Aliases

                                            type ConfigContext

                                            type ConfigContext = Context & ProcessOptionsPreload & RemainingProcessOptions;

                                              type ConfigFn

                                              type ConfigFn = (ctx: ConfigContext) => Config | Promise<Config>;

                                                type ConfigPlugin

                                                type ConfigPlugin = Transformer | Plugin | Processor;

                                                  type RemainingProcessOptions

                                                  type RemainingProcessOptions = Pick<
                                                  ProcessOptions,
                                                  Exclude<keyof ProcessOptions, keyof ProcessOptionsPreload>
                                                  >;

                                                    type ResultPlugin

                                                    type ResultPlugin = Plugin | Transformer | Processor;

                                                      Package Files (1)

                                                      Dependencies (3)

                                                      Dev Dependencies (0)

                                                      No dev dependencies.

                                                      Peer Dependencies (1)

                                                      Badge

                                                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/postcss-load-config.

                                                      • Markdown
                                                        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/postcss-load-config)
                                                      • HTML
                                                        <a href="https://www.jsdocs.io/package/postcss-load-config"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>