postcss-calc

  • Version 11.2.2
  • Published
  • 193 kB
  • 1 dependency
  • 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;
    /**
    * Serialize fully resolved finite scalar results without calculation syntax. Defaults to `false`.
    */
    unwrapSingleValue?: 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'>;

        Namespaces

        namespace pluginCreator

        namespace pluginCreator {}

          variable postcss

          var postcss: boolean;

            Package Files (1)

            Dependencies (1)

            Dev Dependencies (7)

            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>