Skip to content

Releases: webpack-contrib/css-loader

v4.2.2

24 Aug 16:37
Compare
Choose a tag to compare

4.2.2 (2020-08-24)

Bug Fixes

  • source maps generation, source from source maps are now relative to compiler.context and use webpack:// protocol (#1169) (fb5c53d)

v4.2.1

06 Aug 15:20
Compare
Choose a tag to compare

4.2.1 (2020-08-06)

Bug Fixes

  • regression with the exportOnlyLocals option, now locals are not exported under the locals name, it was big regression, we apologize for that (24c0a12)

v4.2.0

31 Jul 15:17
Compare
Choose a tag to compare

4.2.0 (2020-07-31)

Features

  • add module.type option, the icss option is deprecated (#1150) (68f72af)

v4.1.1

30 Jul 10:26
Compare
Choose a tag to compare

4.1.1 (2020-07-30)

Bug Fixes

v4.1.0

29 Jul 16:21
Compare
Choose a tag to compare

4.1.0 (2020-07-29)

Features

Bug Fixes

v4.0.0

25 Jul 16:13
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • minimum required Node.js version is 10.13.0
  • minimum required webpack version is 4.27.0
  • the esModule option is true by default
  • default value of the sourceMap option depends on the devtool option
  • icss plugin disable by default, you need to setup the modules option to enable it
  • the modules option is true by default for all files matching /\.module\.\w+$/i.test(filename) regular expression, module.auto is true by default
  • the modules.context option was renamed to the modules.localIdentContext option
  • default the modules.localIdentContext value is compiler.context for the module.getLocalIdent option
  • the modules.hashPrefix option was renamed to the modules.localIdentHashPrefix option
  • the localsConvention option was moved and renamed to the modules.exportLocalsConvention option
  • the getLocalIndent option should be always Function and should always return String value
  • the onlyLocals option was moved and renamed to the modules.exportOnlyLocals option
  • function arguments of the import option were changed, it is now funciton(url, media, resourcePath) {}
  • inline syntax was changed, please write ~ before the file request, i.e. rewrite url(~!!loader!package/img.png) to url(!!loader!~package/img.png)

Features

  • @value supports importing url() (#1126) (7f49a0a)
  • improve url() resolving algorithm (bc19ddd)
  • named export for locals (#1108) (d139ec1)
  • respected the style field from package.json (#1099) (edf5347)
  • support file: protocol (5604205)
  • support server relative URLs

Bug Fixes

  • resolution algorithm, you don't need ~ inside packages in node_modules (76f1480)

v3.6.0

13 Jun 14:26
Compare
Choose a tag to compare

3.6.0 (2020-06-13)

Features

  • allow modules.auto to be a filter function (#1086) (0902353)

v3.5.3

24 Apr 12:00
Compare
Choose a tag to compare

3.5.3 (2020-04-24)

Bug Fixes

  • add file from an error to file dependencies (841423f)
  • avoid query string in source maps (#1082) (f64de13)

v3.5.2

10 Apr 15:32
Compare
Choose a tag to compare

3.5.2 (2020-04-10)

Bug Fixes

v3.5.1

07 Apr 10:05
Compare
Choose a tag to compare

3.5.1 (2020-04-07)

Bug Fixes

  • don't generate an invalid code for locals (#1072) (866b84a)