Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

purgecss-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purgecss-webpack-plugin - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3-alpha.0

58

lib/purgecss-webpack-plugin.d.ts
import { Compiler, Compilation } from "webpack";
type StringRegExpArray = Array<RegExp | string>;
type ComplexSafelist = {
standard?: StringRegExpArray;
deep?: RegExp[];
greedy?: RegExp[];
variables?: StringRegExpArray;
keyframes?: StringRegExpArray;
standard?: StringRegExpArray;
deep?: RegExp[];
greedy?: RegExp[];
variables?: StringRegExpArray;
keyframes?: StringRegExpArray;
};
type ExtractorFunction$0<T = string> = (content: T) => string[];
interface Extractors$0 {
extensions: string[];
extractor: ExtractorFunction$0;
extensions: string[];
extractor: ExtractorFunction$0;
}

@@ -18,29 +18,29 @@ type PathFunction = () => string[];

interface UserDefinedOptions$0 {
paths: string[] | PathFunction;
defaultExtractor?: ExtractorFunction$0;
extractors?: Array<Extractors$0>;
fontFace?: boolean;
keyframes?: boolean;
moduleExtensions?: string[];
output?: string;
rejected?: boolean;
stdin?: boolean;
stdout?: boolean;
variables?: boolean;
verbose?: boolean;
safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
blocklist?: StringRegExpArray;
only?: string[];
paths: string[] | PathFunction;
defaultExtractor?: ExtractorFunction$0;
extractors?: Array<Extractors$0>;
fontFace?: boolean;
keyframes?: boolean;
moduleExtensions?: string[];
output?: string;
rejected?: boolean;
stdin?: boolean;
stdout?: boolean;
variables?: boolean;
verbose?: boolean;
safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
blocklist?: StringRegExpArray;
only?: string[];
}
type PurgedStats = {
[index: string]: string[];
[index: string]: string[];
};
declare class PurgeCSSPlugin {
options: UserDefinedOptions$0;
purgedStats: PurgedStats;
constructor(options: UserDefinedOptions$0);
apply(compiler: Compiler): void;
initializePlugin(compilation: Compilation): void;
runPluginHook(compilation: Compilation, entryPaths: string[]): Promise<void>;
options: UserDefinedOptions$0;
purgedStats: PurgedStats;
constructor(options: UserDefinedOptions$0);
apply(compiler: Compiler): void;
initializePlugin(compilation: Compilation): void;
runPluginHook(compilation: Compilation, entryPaths: string[]): Promise<void>;
}
export { PurgeCSSPlugin as default };
import { Compiler, Compilation } from "webpack";
type StringRegExpArray = Array<RegExp | string>;
type ComplexSafelist = {
standard?: StringRegExpArray;
deep?: RegExp[];
greedy?: RegExp[];
variables?: StringRegExpArray;
keyframes?: StringRegExpArray;
standard?: StringRegExpArray;
deep?: RegExp[];
greedy?: RegExp[];
variables?: StringRegExpArray;
keyframes?: StringRegExpArray;
};
type ExtractorFunction$0<T = string> = (content: T) => string[];
interface Extractors$0 {
extensions: string[];
extractor: ExtractorFunction$0;
extensions: string[];
extractor: ExtractorFunction$0;
}

@@ -18,29 +18,29 @@ type PathFunction = () => string[];

interface UserDefinedOptions$0 {
paths: string[] | PathFunction;
defaultExtractor?: ExtractorFunction$0;
extractors?: Array<Extractors$0>;
fontFace?: boolean;
keyframes?: boolean;
moduleExtensions?: string[];
output?: string;
rejected?: boolean;
stdin?: boolean;
stdout?: boolean;
variables?: boolean;
verbose?: boolean;
safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
blocklist?: StringRegExpArray;
only?: string[];
paths: string[] | PathFunction;
defaultExtractor?: ExtractorFunction$0;
extractors?: Array<Extractors$0>;
fontFace?: boolean;
keyframes?: boolean;
moduleExtensions?: string[];
output?: string;
rejected?: boolean;
stdin?: boolean;
stdout?: boolean;
variables?: boolean;
verbose?: boolean;
safelist?: StringRegExpArray | ComplexSafelist | SafelistFunction;
blocklist?: StringRegExpArray;
only?: string[];
}
type PurgedStats = {
[index: string]: string[];
[index: string]: string[];
};
declare class PurgeCSSPlugin {
options: UserDefinedOptions$0;
purgedStats: PurgedStats;
constructor(options: UserDefinedOptions$0);
apply(compiler: Compiler): void;
initializePlugin(compilation: Compilation): void;
runPluginHook(compilation: Compilation, entryPaths: string[]): Promise<void>;
options: UserDefinedOptions$0;
purgedStats: PurgedStats;
constructor(options: UserDefinedOptions$0);
apply(compiler: Compiler): void;
initializePlugin(compilation: Compilation): void;
runPluginHook(compilation: Compilation, entryPaths: string[]): Promise<void>;
}
export { PurgeCSSPlugin as default };
{
"name": "purgecss-webpack-plugin",
"version": "3.1.2",
"version": "3.1.3-alpha.0",
"description": "PurgeCSS plugin for webpack - Remove unused css",

@@ -39,3 +39,3 @@ "author": "Ffloriel",

"dependencies": {
"purgecss": "^3.1.0",
"purgecss": "^3.1.3-alpha.0",
"webpack": "^5.4.0",

@@ -55,3 +55,3 @@ "webpack-sources": "^2.0.0"

},
"gitHead": "6ed31d5ce92c8180e05d04887b8df6569569ea11"
"gitHead": "48a8a482e56fe9352d5908fbc87842dc66d82d41"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc