cssnano

  • Version 9.0.4
  • Published
  • 10.3 kB
  • 1 dependency
  • MIT license

Install

npm i cssnano
yarn add cssnano
pnpm add cssnano

Overview

A modular CSS minifier, built on top of the PostCSS ecosystem.

Index

Functions

function cssnanoPlugin

cssnanoPlugin: typeof cssnanoPlugin;
  • Parameter options

    {import('postcss').Processor}

Type Aliases

type Options

type Options = {
preset?: PresetSpec;
plugins?: PluginSpec[];
configFile?: string;
};

    type PluginCreator

    type PluginCreator = import('postcss').PluginCreator<any>;

      type PluginOptions

      type PluginOptions =
      | boolean
      | {
      exclude?: boolean;
      }
      | void
      | undefined;

        type PluginSpec

        type PluginSpec = string | PluginCreator | [string | PluginCreator, object?];

          type PresetFactory

          type PresetFactory = (options?: any) => {
          plugins: PresetPlugin[];
          };

            type PresetPlugin

            type PresetPlugin = [PluginCreator, PluginOptions];

              type PresetSpec

              type PresetSpec =
              | string
              | PresetFactory
              | [string | PresetFactory, object]
              | {
              plugins: PresetPlugin[];
              };

                Namespaces

                namespace cssnanoPlugin

                namespace cssnanoPlugin {}

                  variable postcss

                  var postcss: boolean;

                    Package Files (1)

                    Dependencies (1)

                    Dev Dependencies (5)

                    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/cssnano.

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