|
2 | 2 |
|
3 | 3 | 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.
|
4 | 4 |
|
| 5 | +## [6.0.0](https://github.com/webpack-contrib/css-loader/compare/v5.2.7...v6.0.0) (2021-07-14) |
| 6 | + |
| 7 | + |
| 8 | +### ⚠ BREAKING CHANGES |
| 9 | + |
| 10 | +* minimum supported `Node.js` version is `12.13.0` |
| 11 | +* minimum supported `weboack` version is `5` |
| 12 | +* for `url` and `import` options `Function` type was removed in favor `Object` type with the `filter` property, i.e. before `{ url: () => true }`, now `{ url: { filter: () => true } }` and before `{ import: () => true }`, now `{ import: { filter: () => true } }` |
| 13 | +* the `importLoaders` option was removed in favor in favor `import.loaders` option |
| 14 | +* the `modules.compileType` option was removed in favor the `modules.mode` option with `icss` value, also the `modules` option can have `icss` string value |
| 15 | +* `new URL()` syntax used for `url()`, only when the `esModules` option is enabled (enabled by default), it means you can bundle CSS for libraries |
| 16 | +* [data URI](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are handling in `url()`, it means you can register loaders for them, [example](https://webpack.js.org/configuration/module/#rulescheme) |
| 17 | +* aliases with `false` value for `url()` now generate empty data URI (i.e. `data:0,`), only when the `esModules` option is enabled (enabled by default) |
| 18 | +* using `~` is deprecated when the `esModules` option is enabled (enabled by default) and can be removed from your code (**we recommend it**), but we still support it for historical reasons. Why you can removed it? The loader will first try to resolve `@import`/`url()` as relative, if it cannot be resolved, the loader will try to resolve `@import`/`url()` inside [`node_modules` or modules directories](https://webpack.js.org/configuration/resolve/#resolvemodules). |
| 19 | +* `[ext]` placeholder don't need `.` (dot) before for the `localIdentName` option, i.e. please change `.[ext]` on `[ext]` (no dot before) |
| 20 | +* `[folder]` placeholder was removed without replacement for the `localIdentName` option, please use a custom function if you need complex logic |
| 21 | +* `[emoji]` placeholder was removed without replacement for the `localIdentName` option, please use a custom function if you need complex logic |
| 22 | +* the `localIdentHashPrefix` was removed in favor the `localIdentHashSalt` option |
| 23 | + |
| 24 | +### Features |
| 25 | + |
| 26 | +* added `modules.localIdentHashFunction`, `modules.localIdentHashDigest`, `modules.localIdentHashDigestLength` options for better class hashing controlling |
| 27 | +* less dependencies |
| 28 | + |
| 29 | +### Bug Fixes |
| 30 | + |
| 31 | +* better performance |
| 32 | + |
5 | 33 | ### [5.2.7](https://github.com/webpack-contrib/css-loader/compare/v5.2.6...v5.2.7) (2021-07-13)
|
6 | 34 |
|
7 | 35 |
|
|
0 commit comments