@types/optimize-css-assets-webpack-plugin
- Version 5.0.8
- Published
- 6.46 kB
- 1 dependency
- MIT license
Install
npm i @types/optimize-css-assets-webpack-plugin
yarn add @types/optimize-css-assets-webpack-plugin
pnpm add @types/optimize-css-assets-webpack-plugin
Overview
TypeScript definitions for optimize-css-assets-webpack-plugin
Index
Classes
class OptimizeCssAssetsPlugin
class OptimizeCssAssetsPlugin implements Plugin {}
constructor
constructor(options?: OptimizeCssAssetsPlugin.Options);
method apply
apply: (compiler: Compiler) => void;
Interfaces
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/.css$/g
property canPrint
canPrint?: boolean | undefined;
A boolean indicating if the plugin can print messages to the console.
true
property cssProcessor
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).cssnano
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.
Badge
To add a badge like this oneto 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[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/optimize-css-assets-webpack-plugin)
- 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>
- Updated .
Package analyzed in 2784 ms. - Missing or incorrect documentation? Open an issue for this package.