@types/optimize-css-assets-webpack-plugin
TypeScript definitions for optimize-css-assets-webpack-plugin
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/optimize-css-assets-webpack-plugin 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/optimize-css-assets-webpack-plugin

Summary

This package contains type definitions for optimize-css-assets-webpack-plugin (http://github.com/nmfr/optimize-css-assets-webpack-plugin).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/optimize-css-assets-webpack-plugin.

index.d.ts

// Type definitions for optimize-css-assets-webpack-plugin 5.0
// Project: http://github.com/nmfr/optimize-css-assets-webpack-plugin
// Definitions by: Armando Meziat <https://github.com/odnamrataizem>
//                 Spencer Miskoviak <https://github.com/skovy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

import { WebpackPluginInstance as Plugin, Compiler } from 'webpack';

export = OptimizeCssAssetsPlugin;

declare namespace OptimizeCssAssetsPlugin {
    interface Options {
        /**
         * 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
         *
         * @default /\.css$/g
         */
        assetNameRegExp?: RegExp | 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).
         *
         * @default cssnano
         */
        cssProcessor?: {
            process: (css: string, options?: object) => PromiseLike<any>;
        } | undefined;
        /**
         * The options passed to the `cssProcessor`.
         *
         * @default {}
         */
        cssProcessorOptions?: object | undefined;
        /**
         * The plugin options passed to the `cssProcessor`.
         *
         * @default {}
         */
        cssProcessorPluginOptions?: object | undefined;
        /**
         * A boolean indicating if the plugin can print messages to the console.
         *
         * @default true
         */
        canPrint?: boolean | undefined;
    }
}

declare class OptimizeCssAssetsPlugin implements Plugin {
    constructor(options?: OptimizeCssAssetsPlugin.Options);
    apply(compiler: Compiler): void;
}

Additional Details

  • Last updated: Wed, 07 Jul 2021 17:02:23 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

These definitions were written by Armando Meziat, and Spencer Miskoviak.

Current Tags

  • 5.0.5                                ...           latest (4 years ago)
  • 1.3.1                                ...           ts2.0 (9 years ago)
  • 1.3.1                                ...           ts2.1 (9 years ago)
  • 1.3.2                                ...           ts2.2 (8 years ago)
  • 5.0.1                                ...           ts2.3 (7 years ago)
  • 5.0.1                                ...           ts2.4 (7 years ago)
  • 5.0.1                                ...           ts2.5 (7 years ago)
  • 5.0.1                                ...           ts2.6 (7 years ago)
  • 5.0.1                                ...           ts2.7 (7 years ago)
  • 5.0.1                                ...           ts2.8 (7 years ago)
  • 5.0.1                                ...           ts2.9 (7 years ago)
  • 5.0.1                                ...           ts3.0 (7 years ago)
  • 5.0.1                                ...           ts3.1 (7 years ago)
  • 5.0.1                                ...           ts3.2 (7 years ago)
  • 5.0.2                                ...           ts3.3 (5 years ago)
  • 5.0.2                                ...           ts3.4 (5 years ago)
  • 5.0.2                                ...           ts3.5 (5 years ago)
  • 5.0.2                                ...           ts3.6 (5 years ago)
  • 5.0.4                                ...           ts3.7 (5 years ago)
  • 5.0.5                                ...           ts3.8 (4 years ago)
  • 5.0.5                                ...           ts3.9 (4 years ago)
  • 5.0.5                                ...           ts4.0 (4 years ago)
  • 5.0.5                                ...           ts4.1 (4 years ago)
  • 5.0.5                                ...           ts4.2 (4 years ago)
  • 5.0.5                                ...           ts4.3 (4 years ago)
  • 5.0.5                                ...           ts4.4 (4 years ago)
  • 5.0.5                                ...           ts4.5 (4 years ago)
  • 5.0.5                                ...           ts4.6 (4 years ago)
  • 5.0.5                                ...           ts4.7 (4 years ago)
  • 5.0.5                                ...           ts4.8 (4 years ago)
  • 5.0.5                                ...           ts4.9 (4 years ago)
  • 5.0.5                                ...           ts5.0 (4 years ago)
  • 5.0.5                                ...           ts5.1 (4 years ago)

11 Versions

  • 5.0.5                                ...           4 years ago
  • 5.0.4                                ...           5 years ago
  • 5.0.3                                ...           5 years ago
  • 5.0.2                                ...           5 years ago
  • 5.0.1                                ...           7 years ago
  • 5.0.0                                ...           7 years ago
  • 1.3.4                                ...           7 years ago
  • 1.3.3                                ...           8 years ago
  • 1.3.2                                ...           8 years ago
  • 1.3.1                                ...           9 years ago
  • 1.3.0                                ...           9 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |