postcss-discard-duplicates

  • Version 9.0.7
  • Published
  • 14.8 kB
  • 1 dependency
  • MIT license

Install

npm i postcss-discard-duplicates
yarn add postcss-discard-duplicates
pnpm add postcss-discard-duplicates

Overview

Discard duplicate rules in your CSS files with PostCSS.

Index

Variables

variable moduleExports

const moduleExports: typeof pluginCreator;

    Functions

    function pluginCreator

    pluginCreator: typeof pluginCreator;
    • {import('postcss').Plugin}

    Type Aliases

    type ComparableNode

    type ComparableNode = {
    type: string;
    important?: boolean;
    raws: {
    before?: string;
    afterName?: string;
    };
    selector?: string;
    name?: string;
    params?: string;
    prop?: string;
    value?: string;
    nodes?: import('postcss').ChildNode[];
    };

      type Scope

      type Scope = {
      decls?: SeenNodes;
      ruleDecls?: Map<string, SeenNodes>;
      children?: Map<string, Scope>;
      };

        type SeenNodes

        type SeenNodes = Map<
        string,
        import('postcss').AnyNode | import('postcss').AnyNode[]
        >;

          Namespaces

          namespace pluginCreator

          namespace pluginCreator {}

            variable postcss

            var postcss: boolean;

              Package Files (1)

              Dependencies (1)

              Dev Dependencies (1)

              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-discard-duplicates.

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