Socket
Socket
Sign inDemoInstall

css-loader

Package Overview
Dependencies
92
Maintainers
3
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
46
16Next

4.2.1

Diff

Changelog

Source

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)
evilebottnawi
published 4.2.0 •

Changelog

Source

4.2.0 (2020-07-31)

Features

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

Changelog

Source

4.1.1 (2020-07-30)

Bug Fixes

evilebottnawi
published 4.1.0 •

Changelog

Source

4.1.0 (2020-07-29)

Features

Bug Fixes

evilebottnawi
published 4.0.0 •

Changelog

Source

4.0.0 (2020-07-25)

⚠ 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 function(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)
  • url() resolving algorithm now handles absolute paths instead of ignoring them. This can break builds which relied on absolute paths to refer to the asset directory. (bc19ddd)

Features

  • @value supports importing url() (#1126) (7f49a0a)
  • improve url() resolving algorithm to support more path types (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)
evilebottnawi
published 3.6.0 •

Changelog

Source

3.6.0 (2020-06-13)

Features

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

Changelog

Source

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)
evilebottnawi
published 3.5.2 •

Changelog

Source

3.5.2 (2020-04-10)

Bug Fixes

evilebottnawi
published 3.5.1 •

Changelog

Source

3.5.1 (2020-04-07)

Bug Fixes

evilebottnawi
published 3.5.0 •

Changelog

Source

3.5.0 (2020-04-06)

Features

  • accept semver compatible postcss AST (#1049) (14c4faa)
  • allow to determinate css modules using the modules.auto option, please look at an example of how you can simplify the configuration. (#1067) (c673cf4)
  • the modules.exportGlobals option for export global classes and ids (#1069) (519e5f4)
  • the modules.mode option may be a function (#1065) (0d8ac3b)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc