Skip to content

Releases: webpack-contrib/mini-css-extract-plugin

v2.0.0

30 Jun 17:01
Compare
Choose a tag to compare

2.0.0 (2021-06-30)

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)

v1.6.2

28 Jun 15:44
Compare
Choose a tag to compare

1.6.2 (2021-06-28)

Bug Fixes

  • performance improvement

v1.6.1

25 Jun 16:30
Compare
Choose a tag to compare

1.6.1 (2021-06-25)

Bug Fixes

v1.6.0

30 Apr 11:46
Compare
Choose a tag to compare

1.6.0 (2021-04-30)

Features

  • added new URL('./file.ext', import.meta.url) support (#753) (c76a1a1)

v1.5.1

28 Apr 13:45
Compare
Choose a tag to compare

1.5.1 (2021-04-28)

Bug Fixes

  • compatibility with named export and es5 (#751) (3be81bb)

v1.5.0

17 Apr 15:12
Compare
Choose a tag to compare

1.5.0 (2021-04-17)

Features

  • add experimental support for importModule, improve perfomance (#737) (8471ac2)

v1.4.1

07 Apr 12:16
Compare
Choose a tag to compare

1.4.1 (2021-04-07)

Bug Fixes

v1.4.0

26 Mar 18:12
Compare
Choose a tag to compare

1.4.0 (2021-03-26)

Features

v1.3.9

25 Feb 16:45
Compare
Choose a tag to compare

1.3.9 (2021-02-25)

Bug Fixes

  • allow consumers to access CssModule and CssDependency (#703) (6484345)
  • allow to use auto value with the publicPath option (#709) (1be21d2)

v1.3.8

18 Feb 15:00
Compare
Choose a tag to compare

1.3.8 (2021-02-18)

Bug Fixes