Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@types/optimize-css-assets-webpack-plugin
Advanced tools
TypeScript definitions for optimize-css-assets-webpack-plugin
npm install --save @types/optimize-css-assets-webpack-plugin
This package contains type definitions for optimize-css-assets-webpack-plugin (https://github.com/nmfr/optimize-css-assets-webpack-plugin).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/optimize-css-assets-webpack-plugin.
import { Compiler, WebpackPluginInstance as Plugin } 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;
}
These definitions were written by Armando Meziat, and Spencer Miskoviak.
FAQs
TypeScript definitions for optimize-css-assets-webpack-plugin
The npm package @types/optimize-css-assets-webpack-plugin receives a total of 84,187 weekly downloads. As such, @types/optimize-css-assets-webpack-plugin popularity was classified as popular.
We found that @types/optimize-css-assets-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.