Skip to content

Commit 794b602

Browse files
chore(release): 2.0.0
1 parent f6223b6 commit 794b602

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.0.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.6.2...v2.0.0) (2021-06-30)
6+
7+
### NOTES
8+
9+
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.
10+
11+
**We strongly recommend use `auto` value by default (except when using CDN).**
12+
13+
**We also want to show you that the [`file-loader`](https://github.com/webpack-contrib/file-loader) and [`url-loader`](https://github.com/webpack-contrib/url-loader) are outdated, please migrate on [Asset Modules](https://webpack.js.org/guides/asset-modules/).**
14+
15+
### ⚠ BREAKING CHANGES
16+
17+
* minimum supported `Node.js` version is `12.13.0`
18+
* minimum supported `webpack` version is `5.0.0`
19+
* 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
20+
* 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/"`
21+
22+
### Bug Fixes
23+
24+
* generating correct relative `url()` for assets inside CSS files when you use `publicPath: "auto"` (default value)
25+
26+
527
### [1.6.2](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.6.1...v1.6.2) (2021-06-28)
628

729
### Bug Fixes

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mini-css-extract-plugin",
3-
"version": "1.6.2",
3+
"version": "2.0.0",
44
"description": "extracts CSS into separate files",
55
"license": "MIT",
66
"repository": "webpack-contrib/mini-css-extract-plugin",

0 commit comments

Comments
 (0)