Skip to content

Update dependency mini-css-extract-plugin to v2

renovate requested to merge renovate/mini-css-extract-plugin-2.x into master

This MR contains the following updates:

Package Type Update Change
mini-css-extract-plugin dependencies major 1.6.2 -> 2.4.2

Release Notes

webpack-contrib/mini-css-extract-plugin

v2.4.2

Compare Source

v2.4.1

Compare Source

v2.4.0

Compare Source

Performance
  • migrate on new API, this improves performance and memory usage a lot, you need to have at least webpack 5.52.0 (recommended latest stable), for older versions the old API will be used (except explicit enabling of the experimentalUseImportModule option)
Features
  • added support for supports() and layer() in @import at-rule (#​843) (e751080)
Bug Fixes

v2.3.0

Compare Source

Features
Bug Fixes
  • better description for async chunk options (34b65ac)
2.2.2 (2021-09-01)
Bug Fixes
  • experimentalUseImportModule works with new URL(...) syntax (cf81c4b)
2.2.1 (2021-08-31)
Bug Fixes
  • order of @import with the output.pathinfo option (#​815) (831f771)
  • source map generation with the output.pathinfo option (#​817) (f813b4c)

v2.2.2

Compare Source

v2.2.1

Compare Source

v2.2.0

Compare Source

Features
Bug Fixes
  • hmr in browser extension (3d09da1)

v2.1.0

Compare Source

Features

v2.0.0

Compare Source

NOTES

In the current release we have fixed many problems with publicPath, previously to generate relative URLs inside CSS files developers use different hacks: publicPath: '', publicPath: '../', using relative ../../ in the outputPath option for file-loader and etc. Now you don't need it anymore. Webpack v5 uses publicPath: "auto" by default, which means to always generate relative URLs, and now mini-css-extract-plugin does the same.

We strongly recommend use auto value by default (except when using CDN).

We also want to show you that the file-loader and url-loader are outdated, please migrate on Asset Modules.

BREAKING CHANGES
  • minimum supported Node.js version is 12.13.0
  • minimum supported webpack version is 5.0.0
  • the modules.namedExport option was removed, you don't need it anymore, because we respect the modules.namedExport option from css-loader, just remove it
  • the publicPath option no longer automatically adds / (trailing slash), you need to specify, you need to specify it yourself if it is absent, i.e. if you have publicPath: "/my/public/path" replace it with publicPath: "/my/public/path/"
Bug Fixes
  • generating correct relative url() for assets inside CSS files when you use publicPath: "auto" (default value)
1.6.2 (2021-06-28)
Bug Fixes
  • performance improvement
1.6.1 (2021-06-25)
Bug Fixes

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box.

This MR has been generated by Renovate Bot.

Edited by renovate

Merge request reports