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


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


Autoload Config for PostCSS



function postcssrc

postcssrc: typeof postcssrc;

    function sync

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


      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<
                                                  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)


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

                                                      You may also use to create a custom badge linking to

                                                      • Markdown
                                                      • HTML
                                                        <a href=""><img src="" alt=""></a>