postcss-calc

  • Version 11.0.0
  • Published
  • 85.3 kB
  • 2 dependencies
  • MIT license

Install

npm i postcss-calc
yarn add postcss-calc
pnpm add postcss-calc

Overview

PostCSS plugin to reduce calc()

Index

Variables

variable _default

const _default: any;

    Functions

    function pluginCreator

    pluginCreator: typeof pluginCreator;
    • Parameter opts

      {import('postcss').Plugin}

    Type Aliases

    type PostCssCalcOptions

    type PostCssCalcOptions = {
    precision?: number | false;
    warnWhenCannotResolve?: boolean;
    mediaQueries?: boolean;
    selectors?: boolean;
    /**
    * Invoked when parse/simplify throws. Replaces the default `result.warn`.
    */
    onParseError?: (error: Error, input: string) => void;
    };

      type ResolvedOptions

      type ResolvedOptions = Required<Omit<PostCssCalcOptions, 'onParseError'>> &
      Pick<PostCssCalcOptions, 'onParseError'>;

        type TransformContext

        type TransformContext = {
        options: ResolvedOptions;
        result: import('postcss').Result;
        item: import('postcss').ChildNode;
        value: string;
        };

          Namespaces

          namespace pluginCreator

          namespace pluginCreator {}

            variable postcss

            var postcss: boolean;

              Package Files (1)

              Dependencies (2)

              Dev Dependencies (8)

              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-calc.

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