PurgeCSSPurgeCSS
API Reference
  • English
  • Français
GitHub
API Reference
  • English
  • Français
GitHub
  • PurgeCSS

    • About PurgeCSS
    • Getting Started
    • Configuration
    • Command Line Interface
    • Programmatic API
    • Safelisting
    • Extractors
  • Plugins

    • PostCSS
    • Webpack
    • Rollup
    • Gulp
    • Grunt
    • Gatsby
  • Guides

    • Vue
    • React
    • Angular
    • Next.js
    • Nuxt.js
    • Razzle
    • WordPress
    • Hugo
  • Comparison
  • Common Questions

    • How to use with CSS modules
    • How to use with Ant Design

Home > purgecss-webpack-plugin > CompilerLike

CompilerLike interface

Compiler of webpack or Rspack, the part of it the plugin is applied to. The types of the plugin do not depend on webpack, which Rspack projects don't install.

Signature:

export interface CompilerLike 

Properties

Property

Modifiers

Type

Description

hooks

{ compilation: { tap(name: string, callback: (compilation: CompilationLike) => void): void; }; }