unstale

npm / mini-css-extract-plugin

mini-css-extract-plugin

What changed in mini-css-extract-plugin 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

8 breaking2 behavior and defaults5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

mini-css-extract-plugin 210 changes

Breaking changes 4

  • The minimum supported Node.js version is now 10.13.0.

    1.0.0, 2.0.0release notesrelease notes

  • This option was removed; mini-css-extract-plugin now respects the modules.namedExport option from css-loader.

    2.0.0release notes

  • The publicPath option no longer automatically adds a trailing slash; specify the slash yourself when needed.

    2.0.0release notes

  • The minimum supported webpack version is 5.0.0.

    2.0.0release notes

Behavior and default changes 1

  • Uses matchResource for importModule when available.

    2.10.2release notes

Fixes and other changes 5

  • Handles a null module.layer in renderContentAsset.

    2.10.1release notes

  • Prevents generation of a contentHash for a chunk when it has no CSS modules.

    2.10.0release notes

  • The plugin now respects output.cssChunkFilename.

    2.10.0release notes

  • The plugin now respects output.cssFilename.

    2.10.0release notes

  • With publicPath set to auto, the plugin generates correct relative URLs for assets inside CSS files.

    2.0.0release notes

mini-css-extract-plugin 15 changes

Breaking changes 4

  • The esModule option defaults to true; change CommonJS require usage to ES module import syntax.

    1.0.0release notes

  • The hmr option was removed; HMR works automatically when the HotModuleReplacement plugin is used or webpack-dev-server has hot enabled.

    1.0.0release notes

  • The moduleFilename option was removed in favor of the filename option.

    1.0.0release notes

  • The reloadAll option was removed.

    1.0.0release notes

Behavior and default changes 1

  • For webpack 5, chunkFilename can now be a function.

    1.0.0release notes