Update dependency mini-css-extract-plugin to v2
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
mini-css-extract-plugin | 1.6.2 -> 2.1.0 |
Release Notes
webpack-contrib/mini-css-extract-plugin
v2.1.0
Features
v2.0.0
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 is12.13.0
- minimum supported
webpack
version is5.0.0
- the
modules.namedExport
option was removed, you don't need it anymore, because we respect themodules.namedExport
option fromcss-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 havepublicPath: "/my/public/path"
replace it withpublicPath: "/my/public/path/"
Bug Fixes
- generating correct relative
url()
for assets inside CSS files when you usepublicPath: "auto"
(default value)
1.6.2 (2021-06-28)
Bug Fixes
- performance improvement
1.6.1 (2021-06-25)
Bug Fixes
- memory leaks (c68aca7)
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.