• Version 5.0.8
  • Published
  • 6.46 kB
  • 1 dependency
  • MIT license


npm i @types/optimize-css-assets-webpack-plugin
yarn add @types/optimize-css-assets-webpack-plugin
pnpm add @types/optimize-css-assets-webpack-plugin


TypeScript definitions for optimize-css-assets-webpack-plugin



class OptimizeCssAssetsPlugin

class OptimizeCssAssetsPlugin implements Plugin {}


    constructor(options?: OptimizeCssAssetsPlugin.Options);

      method apply

      apply: (compiler: Compiler) => void;


        interface Options

        interface Options {}

          property assetNameRegExp

          assetNameRegExp?: RegExp | undefined;
          • A regular expression that indicates the names of the assets that should be optimized \ minimized. The regular expression provided is run against the filenames of the files exported by the ExtractTextPlugin instances in your configuration, not the filenames of your source CSS files


          property canPrint

          canPrint?: boolean | undefined;
          • A boolean indicating if the plugin can print messages to the console.


          property cssProcessor

          | {
          process: (css: string, options?: object) => PromiseLike<any>;
          | undefined;
          • The CSS processor used to optimize \ minimize the CSS. This should be a function that follows cssnano.process interface (receives a CSS and options parameters and returns a Promise).


          property cssProcessorOptions

          cssProcessorOptions?: object | undefined;
          • The options passed to the cssProcessor.


          property cssProcessorPluginOptions

          cssProcessorPluginOptions?: object | undefined;
          • The plugin options passed to the cssProcessor.


          Package Files (1)

          Dependencies (1)

          Dev Dependencies (0)

          No dev dependencies.

          Peer Dependencies (0)

          No peer dependencies.


          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/@types/optimize-css-assets-webpack-plugin.

          • Markdown
          • HTML
            <a href="https://www.jsdocs.io/package/@types/optimize-css-assets-webpack-plugin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>