Skip to content

Commit 7857d8f

Browse files
chore(release): 4.0.0
1 parent 5604205 commit 7857d8f

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
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+
## [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+
540
## [3.6.0](https://github.com/webpack-contrib/css-loader/compare/v3.5.3...v3.6.0) (2020-06-13)
641

742

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": "css-loader",
3-
"version": "3.6.0",
3+
"version": "4.0.0",
44
"description": "css loader module for webpack",
55
"license": "MIT",
66
"repository": "webpack-contrib/css-loader",

0 commit comments

Comments
 (0)