On this page

    Plugins hook into webpack's build lifecycle to do work that loaders cannot, such as optimizing output and managing assets. See Concepts: Plugins for how they fit into a build.

    Plugins built into webpack are documented in the API reference. The plugins below are separate packages maintained by the webpack organization.

    PluginDescription
    mini-css-extract-pluginExtract CSS into separate files, one per JS file that imports CSS
    copy-webpack-pluginCopy individual files or whole directories into the build output
    compression-webpack-pluginEmit compressed versions of assets to serve with Content-Encoding
    image-minimizer-webpack-pluginCompress images during the build
    eslint-webpack-pluginRun ESLint on your modules during the build
    stylelint-webpack-pluginRun Stylelint on your styles during the build
    minimizer-webpack-pluginMinify assets, with support for several minifiers