|
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 | +## [4.0.0](https://github.com/webpack-contrib/css-loader/compare/v3.6.0...v4.0.0) (2020-07-25) |
| 6 | + |
| 7 | + |
| 8 | +### ⚠ BREAKING CHANGES |
| 9 | + |
| 10 | +* minimum required `Node.js` version is `10.13.0` |
| 11 | +* minimum required `webpack` version is `4.27.0` |
| 12 | +* the `esModule` option is `true` by default |
| 13 | +* default value of the `sourceMap` option depends on the `devtool` option |
| 14 | +* `icss` plugin disable by default, you need to setup the `modules` option to enable it |
| 15 | +* the `modules` option is `true` by default for all files matching `/\.module\.\w+$/i.test(filename)` regular expression, `module.auto` is `true` by default |
| 16 | +* the `modules.context` option was renamed to the `modules.localIdentContext` option |
| 17 | +* default the `modules.localIdentContext` value is `compiler.context` for the `module.getLocalIdent` option |
| 18 | +* the `modules.hashPrefix` option was renamed to the `modules.localIdentHashPrefix` option |
| 19 | +* the `localsConvention` option was moved and renamed to the `modules.exportLocalsConvention` option |
| 20 | +* the `getLocalIndent` option should be always `Function` and should always return `String` value |
| 21 | +* the `onlyLocals` option was moved and renamed to the `modules.exportOnlyLocals` option |
| 22 | +* function arguments of the `import` option were changed, it is now `funciton(url, media, resourcePath) {}` |
| 23 | +* inline syntax was changed, please write `~` before the file request, i.e. rewrite `url(~!!loader!package/img.png)` to `url(!!loader!~package/img.png)` |
| 24 | + |
| 25 | + |
| 26 | +### Features |
| 27 | + |
| 28 | +* `@value` supports importing `url()` ([#1126](https://github.com/webpack-contrib/css-loader/issues/1126)) ([7f49a0a](https://github.com/webpack-contrib/css-loader/commit/7f49a0a6047846bb2e432558365e19d4a0dfb366)) |
| 29 | +* improve `url()` resolving algorithm ([bc19ddd](https://github.com/webpack-contrib/css-loader/commit/bc19ddd8779dafbc2a420870a3cb841041ce9c7c)) |
| 30 | +* named export for locals ([#1108](https://github.com/webpack-contrib/css-loader/issues/1108)) ([d139ec1](https://github.com/webpack-contrib/css-loader/commit/d139ec1d763f9944550b31f2a75183e488dd1224)) |
| 31 | +* respected the `style` field from package.json ([#1099](https://github.com/webpack-contrib/css-loader/issues/1099)) ([edf5347](https://github.com/webpack-contrib/css-loader/commit/edf5347e4203a62e50b87248a83da198afdc6eba)) |
| 32 | +* support `file:` protocol ([5604205](https://github.com/webpack-contrib/css-loader/commit/560420567eb0e1a635648b7f4ff0365db475384c)) |
| 33 | +* support server relative URLs |
| 34 | + |
| 35 | +### Bug Fixes |
| 36 | + |
| 37 | +* resolution algorithm, you don't need `~` inside packages in `node_modules` ([76f1480](https://github.com/webpack-contrib/css-loader/commit/76f1480b14265369ac5dc8dbbce467cfb8e814c5)) |
| 38 | + |
| 39 | + |
5 | 40 | ## [3.6.0](https://github.com/webpack-contrib/css-loader/compare/v3.5.3...v3.6.0) (2020-06-13)
|
6 | 41 |
|
7 | 42 |
|
|
0 commit comments